mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Making the nagios module NOOPpable
This commit is contained in:
parent
6a12d64059
commit
b0bd0a0f4a
1 changed files with 6 additions and 3 deletions
|
@ -185,6 +185,9 @@ def main():
|
|||
|
||||
##################################################################
|
||||
ansible_nagios = Nagios(module, **module.params)
|
||||
if self.check_mode:
|
||||
module.exit_json(changed=True)
|
||||
else:
|
||||
ansible_nagios.act()
|
||||
##################################################################
|
||||
|
||||
|
|
Loading…
Reference in a new issue