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 #12574] missleading help text when adding a blacklist #4586

Closed
icinga-migration opened this issue Aug 28, 2016 · 3 comments
Closed
Labels
area/cli Command line helpers bug Something isn't working

Comments

@icinga-migration
Copy link

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)

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!

@icinga-migration
Copy link
Author

Updated by evgeni on 2016-08-28 08:12:58 +00:00

I did not test, but I guess the same applies to the whitelist too.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2016-08-29 09:28:36 +00:00

  • Category set to CLI
  • Status changed from New to Feedback
  • Assigned to set to evgeni

Hi,

do you have a patch please? :)

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2016-12-07 18:30:28 +00:00

  • Status changed from Feedback to Closed
  • Assigned to deleted evgeni

Those commands are deprecated in v2.6 so this is a wont fix, thanks anyways.

@icinga-migration icinga-migration added bug Something isn't working area/cli Command line helpers labels Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Command line helpers bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant