Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #10003] Nested "outer" macro calls fails on (handled) missing "inner" values #3325

Closed
icinga-migration opened this issue Aug 26, 2015 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/10003

Created by tgelf on 2015-08-26 14:40:55 +00:00

Assignee: gbeutner
Status: Resolved (closed on 2015-08-27 07:02:49 +00:00)
Target Version: 2.3.10
Last Update: 2015-09-05 13:38:47 +00:00 (in Redmine)

Icinga Version: 2.4.0
Backport?: Already backported
Include in Changelog: 1

Given a nested macro call, the "outer" call fails if one of the inner calls does not resolve. This is true even if the "inner" part is handling the missing value and correctly returning something.

Example:

vars.a = {{
  var x = macro("$x$")
  return "val"
}}
vars.b = "$a$"

Expected result in vars.b: "val". Actual result: nothing.

Cheers,
Thomas

Changesets

2015-08-27 07:02:21 +00:00 by (unknown) 6ef9d3c

Missing macros in nested macro() calls should not cause the outer macro resolution to fail

fixes #10003

2015-09-05 13:37:58 +00:00 by (unknown) 2baa81a

Missing macros in nested macro() calls should not cause the outer macro resolution to fail

fixes #10003
@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-08-27 06:59:10 +00:00

  • Category set to libicinga
  • Status changed from New to Assigned
  • Assigned to set to gbeutner
  • Target Version set to 2.4.0

@icinga-migration
Copy link
Author

Updated by Anonymous on 2015-08-27 07:02:49 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset 6ef9d3c.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-09-05 13:38:47 +00:00

  • Target Version changed from 2.4.0 to 2.3.10
  • Backport? changed from TBD to Yes

@icinga-migration icinga-migration added bug Something isn't working libicinga labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.3.10 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant