Skip to content

Commit

Permalink
fix: insights connection status
Browse files Browse the repository at this point in the history
This commits fixes the insights-connection status when it is
not connected. Now it shows false when printing in the json
format.

Signed-off-by: Alba Hita Catala <ahitacat@redhat.com>
  • Loading branch information
ahitacat committed Oct 17, 2023
1 parent 3593e00 commit c72d3b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ func statusAction(ctx *cli.Context) (err error) {
} else {
if err == nil {
if machineReadable {
systemStatus.InsightsConnected = true
systemStatus.InsightsConnected = false
} else {
fmt.Print(disconnectedPrefix + " Not connected to Red Hat Insights\n")
}
Expand Down

0 comments on commit c72d3b7

Please sign in to comment.