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 #8834] Return doesn't work inside loops #2812

Closed
icinga-migration opened this issue Mar 21, 2015 · 1 comment
Closed

[dev.icinga.com #8834] Return doesn't work inside loops #2812

icinga-migration opened this issue Mar 21, 2015 · 1 comment
Labels
area/configuration DSL, parser, compiler, error handling bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

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

Created by gbeutner on 2015-03-21 22:44:39 +00:00

Assignee: gbeutner
Status: Resolved (closed on 2015-03-21 23:05:42 +00:00)
Target Version: 2.3.3
Last Update: 2015-03-21 23:05:42 +00:00 (in Redmine)

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

<6> => Array.prototype.contains_match = function(pattern) {
<6> ..   for (item in this) {
<6> ..     if (match(pattern, item)) {
<6> ..       log("ZZZ")
<6> ..       return true
<6> ..     }
<6> ..   }
<6> ..
<6> ..   log("YYY")
<6> ..   return false
<6> .. }
null
<7> => ak.contains_match("co*")
information/config: ZZZ
information/config: YYY
false
<8> =>

Changesets

2015-03-21 23:04:57 +00:00 by (unknown) 808a26a

Fix: 'return' keyword doesn't work inside for loops

fixes #8834

2015-03-21 23:05:18 +00:00 by (unknown) a99773b

Fix: 'return' keyword doesn't work inside for loops

fixes #8834
@icinga-migration
Copy link
Author

Updated by Anonymous on 2015-03-21 23:05:42 +00:00

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

Applied in changeset 808a26a.

@icinga-migration icinga-migration added bug Something isn't working area/configuration DSL, parser, compiler, error handling labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.3.3 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 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant