You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assignee: (none)
Status: Closed (closed on 2016-12-07 18:30:28 +00:00)
Target Version: (none)
Last Update: 2016-12-07 18:30:28 +00:00 (in Redmine)
Icinga Version: 2.5.3
Backport?: Not yet backported
Include in Changelog: 1
ohai,
# icinga2 node blacklist add --help
...
Command options:
--zone arg The name of the zone
--host arg The name of the host
--service arg The name of the service
Given those are options, I expected them to be optional, but they aren't:
root@genshi:~# icinga2 node blacklist add --host '*' --service ping6
critical/cli: At least the zone name filter is required!
root@genshi:~# icinga2 node blacklist add --zone '*' --service ping6
critical/cli: At least the host name filter is required!
root@genshi:~# icinga2 node blacklist add --zone '*' --host '*' --service ping6
(this was OK)
While I think that when all three parameters are mandatory, they should be positional arguments, not options, but that's not for me to decide here :)
The --help text could be improved, saying that actually all of them are mandatory (or make them default to '*'?)
The error message should not say "at least" as this implies that the other options are not mandatory
Thanks!
The text was updated successfully, but these errors were encountered:
This issue has been migrated from Redmine: https://dev.icinga.com/issues/12574
Created by evgeni on 2016-08-28 08:12:43 +00:00
Assignee: (none)
Status: Closed (closed on 2016-12-07 18:30:28 +00:00)
Target Version: (none)
Last Update: 2016-12-07 18:30:28 +00:00 (in Redmine)
ohai,
Given those are options, I expected them to be optional, but they aren't:
While I think that when all three parameters are mandatory, they should be positional arguments, not options, but that's not for me to decide here :)
Thanks!
The text was updated successfully, but these errors were encountered: