Bug 1136191
Summary: | qpid-ha -h or --help should exit with returncode of 0 | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise MRG | Reporter: | Frantisek Reznicek <freznice> | ||||
Component: | qpid-tools | Assignee: | Alan Conway <aconway> | ||||
Status: | CLOSED ERRATA | QA Contact: | Frantisek Reznicek <freznice> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | Development | CC: | esammons, iboverma, jross, zkraus | ||||
Target Milestone: | 3.2 | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | qpid-tools-0.32-1 | Doc Type: | Bug Fix | ||||
Doc Text: |
The `-h` and `--help` options were not recognized by +qpid-ha+, and were treated the same way as running +qpid-ha+ (without any argument). All returned the exit code `1` instead of `0`, which displayed `Exception: No valid command`.
Fix: The `-h` and `-help` options are now implemented to return the result from `--help-all`, which displays command usage for +qpid-ha+ regardless of the commonly-passed method chosen by the user.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-10-08 13:09:07 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Frantisek Reznicek
2014-09-02 06:43:06 UTC
Created attachment 933608 [details]
Current qpid-tools-0.22-14.el6 behavior
Fixed. ------------------------------------------------------------------------ r1642758 | aconway | 2014-12-01 16:10:51 -0500 (Mon, 01 Dec 2014) | 2 lines NO-JIRA: qpid-ha don't return error status if called with -h or --help flag. ------------------------------------------------------------------------ The exit code issue has been fully fixed, tested on RHEL 6.7 / 7.1 on packages qpid-tools-0.34-1.el6.noarch qpid-tools-0.34-1.el7.noarch -> VERIFIED Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2015-1879.html |