Commit 7090ad3a by Michael DeHaan

Merge pull request #2195 from tbielawa/NOOP

First try and making the nagios module NOOPpable
parents c485cb37 b0bd0a0f
...@@ -185,6 +185,9 @@ def main(): ...@@ -185,6 +185,9 @@ def main():
################################################################## ##################################################################
ansible_nagios = Nagios(module, **module.params) ansible_nagios = Nagios(module, **module.params)
if self.check_mode:
module.exit_json(changed=True)
else:
ansible_nagios.act() ansible_nagios.act()
################################################################## ##################################################################
......
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