mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #2195 from tbielawa/NOOP
First try and making the nagios module NOOPpable
This commit is contained in:
commit
7090ad3aac
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