forked from RedHatInsights/rhc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Print correct error, when non-root user run "rhc status"
* Card ID: CCT-288 * When "rhc status" is run as non-root user, then status about insighst-client should not tell that insights-client is not registered. * When "rhc status" is run by non-root user, then rhc prints decent error about insights client. It prints: "Insights client must be run as root." * Also fixed the case, when status command is run with "--format json". When some error happens, then generated JSON contains real error message and not empty dictionary.
- Loading branch information
1 parent
6d561b7
commit a1d1d4d
Showing
3 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters