diff options
Diffstat (limited to 'plugins/modules')
-rw-r--r-- | plugins/modules/vyos_config.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/modules/vyos_config.py b/plugins/modules/vyos_config.py index 893cd647..5e4836d8 100644 --- a/plugins/modules/vyos_config.py +++ b/plugins/modules/vyos_config.py @@ -349,7 +349,8 @@ def main(): if module.params["save"]: diff = run_commands(module, commands=["configure", "compare saved"])[1] if diff != "[edit]": - run_commands(module, commands=["save"]) + if not module.check_mode: + run_commands(module, commands=["save"]) result["changed"] = True run_commands(module, commands=["exit"]) |