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 #12941] Append arguments in command templates/objects #499
Comments
Updated by mfrosch on 2016-10-25 09:14:59 +00:00 We should probably always do:
It will overwrite any pre-existing argument with the same name |
Updated by mfrosch on 2016-10-25 09:19:24 +00:00
|
Updated by tgelf on 2016-10-25 11:48:43 +00:00 While fixing all variants of this would add quite some noise to GUI and code, what about rendering arguments += always when rendering a command object? Would satisfy most needs I guess. There would initially be no -=, but that's something one can easily work around. |
Updated by tgelf on 2016-10-25 11:52:09 +00:00 mfrosch wrote:
:D Didn't read this, sorry :p Ok, we'll go for this. For all commands of object_type = object and at least one import. |
Updated by tgelf on 2016-11-15 16:56:45 +00:00
|
Updated by tgelf on 2016-11-15 17:00:03 +00:00
Applied in changeset d5131f7. |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/12941
Created by leeclemens on 2016-10-18 17:14:51 +00:00
Assignee: tgelf
Status: Resolved (closed on 2016-11-15 17:00:03 +00:00)
Target Version: 1.3.0
Last Update: 2016-11-15 17:00:03 +00:00 (in Redmine)
I specifically used NotificationCommand templates and an object, but the limitation may apply to other Command types.
When creating multiple templates, the arguments are replaced (as Markus Frosch pointed out).
There doesn't appear to be a way in Director to append them, although they import each other properly.
Example:
Markus' response:
It may be safe to always use += instead of = ? But I haven't tested it (or there could be other issues caused).
Maybe a new option on the Argument tab(s) to "Append"?
References:
https://lists.icinga.org/pipermail/icinga-users/2016-October/011413.html
https://lists.icinga.org/pipermail/icinga-users/2016-October/011415.html
Changesets
2016-11-15 16:57:02 +00:00 by tgelf d5131f7
Relations:
The text was updated successfully, but these errors were encountered: