diff options
author | Lamont Granquist <lamont@chef.io> | 2020-02-20 16:13:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-20 16:13:10 -0800 |
commit | 58d916108a8255a56cbb146e3846b44054371bc3 (patch) | |
tree | 55b7522e4dfea8a4912c07f1d24d210e4ad400c9 /spec | |
parent | 99f1f32340d023616182e03c7e477b80611190d3 (diff) | |
parent | f64cf7ddf79259a71c5adfdcd1ecba9b85122b01 (diff) | |
download | chef-58d916108a8255a56cbb146e3846b44054371bc3.tar.gz |
Merge pull request #9374 from chef/chefstyle_fixes
Chefstyle fixes identified with Rubocop 0.80
Diffstat (limited to 'spec')
-rw-r--r-- | spec/support/platform_helpers.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb index 7c2edc426d..c92b3dca39 100644 --- a/spec/support/platform_helpers.rb +++ b/spec/support/platform_helpers.rb @@ -222,16 +222,16 @@ def selinux_enabled? cmd_result = cmd.run_command case cmd_result.exitstatus when 1 - return false + false when 0 - return true + true else raise "Unknown exit code from command #{selinuxenabled_path}: #{cmd.exitstatus}" end else # We assume selinux is not enabled if selinux utils are not # installed. - return false + false end end |