mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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.
This commit is contained in:
parent
b2350d8aaf
commit
5cfefb326a
1 changed files with 2 additions and 2 deletions
|
@ -353,9 +353,9 @@ def get_add_ppa_signing_key_callback(module):
|
|||
module.run_command(command, check_rc=True)
|
||||
|
||||
if module.check_mode:
|
||||
return _run_command
|
||||
else:
|
||||
return None
|
||||
else:
|
||||
return _run_command
|
||||
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Reference in a new issue