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
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