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: Detect insights-client status in non-legacy mode
* Card ID: CCT-525 With `legacy_upload=True` mode, `insights-client --status` returns code 0 if the system is registered and 1 otherwise. In non-legacy mode, 0 is always returned. Even though the `/etc/insights-client/.registered` file is not a public API, it is reliable and we should be able to use it to detect the registration status.
- Loading branch information
1 parent
17654f3
commit 5023890
Showing
2 changed files
with
17 additions
and
27 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