Making the nagios module NOOPpable
This commit is contained in:
parent
34f8fb8e2b
commit
39ef8af4ee
1 changed files with 6 additions and 3 deletions
5
nagios
5
nagios
|
@ -185,7 +185,10 @@ def main():
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
ansible_nagios = Nagios(module, **module.params)
|
ansible_nagios = Nagios(module, **module.params)
|
||||||
ansible_nagios.act()
|
if self.check_mode:
|
||||||
|
module.exit_json(changed=True)
|
||||||
|
else:
|
||||||
|
ansible_nagios.act()
|
||||||
##################################################################
|
##################################################################
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue