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 #8030] Evaluate usage of function() #2396

Closed
icinga-migration opened this issue Dec 9, 2014 · 5 comments
Closed

[dev.icinga.com #8030] Evaluate usage of function() #2396

icinga-migration opened this issue Dec 9, 2014 · 5 comments
Labels
area/configuration DSL, parser, compiler, error handling enhancement New feature or request
Milestone

Comments

@icinga-migration
Copy link

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

Created by mfriedrich on 2014-12-09 11:14:34 +00:00

Assignee: gbeutner
Status: Closed (closed on 2015-01-27 09:36:54 +00:00)
Target Version: 2.3.0
Last Update: 2015-02-13 06:58:44 +00:00 (in Redmine)


  • command arguments
    • set_if
    • value
  • commands
    • methods.execute = my-func
function bla(exclude, include) {
  return exclude != "" && include == ""
}

set_if = { func = bla, args = [ "$vmware_exclude$", "$vmware_include$" ] }

set_if = { func = __function(e, i) { __return e != "" && i == "" }, args = [ "$vmware_exclude$", "$vmware_include$" ] }

set_if = __function() {
  __return macro("$vmware_exclude$") != "" && macro("$vmware_include$") == ""
}

set_if = {{ macro("$vmware_exclude$") != "" && macro("$vmware_include$") == "" }}

Changesets

2014-12-13 11:18:26 +00:00 by (unknown) 4b89ebe

Implement support for lambdas

refs #8030

2014-12-13 11:40:19 +00:00 by (unknown) 024697a

Implement support for lambdas

refs #8030

2014-12-13 12:50:47 +00:00 by (unknown) 54ab4dd

Implement support for lambdas

refs #8030

2014-12-13 13:06:19 +00:00 by (unknown) c0f6d65

Fix operator precedence for =>

refs #8030

Relations:

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-12-09 11:14:46 +00:00

  • Relates set to 6697

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-01-12 09:44:47 +00:00

  • Relates set to 6836

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-01-25 07:30:52 +00:00

  • Relates set to 7564

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-01-27 09:36:54 +00:00

  • Status changed from New to Closed
  • Assigned to set to gbeutner

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-01-27 09:50:48 +00:00

Conclusion

Dynamic custom vars with functions in #7564 will resolve the following:

Command execution is not yet possible and will be evaluated in later versions if necessary.

@icinga-migration icinga-migration added enhancement New feature or request area/configuration DSL, parser, compiler, error handling labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.3.0 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/configuration DSL, parser, compiler, error handling enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant