File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ module Facter::Util::RhsmIdentity
29
29
module_function
30
30
31
31
def rhsm_identity
32
- value = nil
32
+ value = ''
33
33
begin
34
34
output = Facter ::Core ::Execution . execute (
35
35
'/usr/sbin/subscription-manager identity' ,
Original file line number Diff line number Diff line change 46
46
end
47
47
it 'returns the nothing for no data' do
48
48
expect ( Facter ::Core ::Execution ) . to receive ( :execute ) . and_return ( '' )
49
- expect ( Facter ::Util ::RhsmIdentity . rhsm_identity ) . to eq ( nil )
49
+ expect ( Facter ::Util ::RhsmIdentity . rhsm_identity ) . to eq ( '' )
50
50
end
51
51
it 'returns the nothing for no command' do
52
52
expect ( Facter ::Core ::Execution ) . to receive ( :execute ) . and_return ( nil )
53
- expect ( Facter ::Util ::RhsmIdentity . rhsm_identity ) . to eq ( nil )
53
+ expect ( Facter ::Util ::RhsmIdentity . rhsm_identity ) . to eq ( '' )
54
54
end
55
55
it 'returns the nothing for an error' do
56
56
expect ( Facter ::Core ::Execution ) . to receive ( :execute ) {
57
57
throw Facter ::Core ::Execution ::ExecutionFailure
58
58
}
59
59
expect ( Facter ) . to receive ( :debug )
60
- expect ( Facter ::Util ::RhsmIdentity . rhsm_identity ) . to eq ( nil )
60
+ expect ( Facter ::Util ::RhsmIdentity . rhsm_identity ) . to eq ( '' )
61
61
end
62
62
end
You can’t perform that action at this time.
0 commit comments