Commit 5cfefb32 by James Laska

Correct check_mode conditional logic

The desired behavior is to _not_ add the ppa signing key when check_mode is
enabled.  This fix corrects the conditional logic to comply with the stated
behavior.
parent b2350d8a
...@@ -353,9 +353,9 @@ def get_add_ppa_signing_key_callback(module): ...@@ -353,9 +353,9 @@ def get_add_ppa_signing_key_callback(module):
module.run_command(command, check_rc=True) module.run_command(command, check_rc=True)
if module.check_mode: if module.check_mode:
return _run_command
else:
return None return None
else:
return _run_command
def main(): def main():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment