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
Milestone

Comments

@icinga-migration
Copy link
Member

@icinga-migration icinga-migration commented Mar 21, 2015

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

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Mar 21, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.