mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07: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)
|
ansible_nagios = Nagios(module, **module.params)
|
||||||
|
if self.check_mode:
|
||||||
|
module.exit_json(changed=True)
|
||||||
|
else:
|
||||||
ansible_nagios.act()
|
ansible_nagios.act()
|
||||||
##################################################################
|
##################################################################
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue