Bug 1507869
| Summary: | rhui-manager status has multiple issues | ||
|---|---|---|---|
| Product: | Red Hat Update Infrastructure for Cloud Providers | Reporter: | Radek Bíba <rbiba> |
| Component: | Tools | Assignee: | RHUI Bug List <rhui-bugs> |
| Status: | CLOSED ERRATA | QA Contact: | Vratislav Hutsky <vhutsky> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.0.0 | CC: | mkubik |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-02-26 13:50:29 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: | |||
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://access.redhat.com/errata/RHBA-2018:0347 |
Description of problem: Issue #1: The command always prints the return code in its output. That doesn't seem necessary. Issue #2: The usage message reads: --code - if specified, only a numeric code for the result will be displayed However, here's what's displayed: # rhui-manager status --code Red Hat Enterprise Linux Atomic Host (Kickstart) from RHUI ............ Error 0 That's not only a numeric code. The only difference between using --code and not using it is in the absence of the entitlement CA certificate expiration date in the output. Issue #3: As you can see above, the return code is 0 despite an error. (I can confirm that by running "echo $?", which also prints 0.) Shouldn't the return code be REPO_SYNC_ERROR, ie. 1? I can't take advantage of the return code in order to determine if everything is all right; I'd have to parse the output, which isn't very convenient. Version-Release number of selected component (if applicable): rh-rhui-tools-3.0.1-3.el7ui.noarch