Skip to content

Commit ec5cfd8

Browse files
committed
'.registered?' should return false rather than raise if not available.
1 parent 3fdfd3c commit ec5cfd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/linux_admin/subscription_manager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module LinuxAdmin
44
module SubscriptionManager
55
def self.registered?
6-
Common.run("subscription-manager identity")
6+
Common.run("subscription-manager identity", :return_exitstatus => true) == 0
77
end
88

99
def self.refresh

0 commit comments

Comments
 (0)