Skip to content

Commit

Permalink
Evaluation should be done if rc is 0
Browse files Browse the repository at this point in the history
Evaluation should be done if rc is 0
  • Loading branch information
Loeni01 authored Jan 29, 2025
1 parent 2a0f166 commit f5687d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/tunables.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ def getOSlevel(module):
cmd = 'oslevel -s'
rc, stdout, stderr = module.run_command(cmd)

if rc != 0:
if rc == 0:
oslevel = stdout.split("-")
if oslevel[0] == "7300":
return True
Expand Down

0 comments on commit f5687d8

Please sign in to comment.