summaryrefslogtreecommitdiff
path: root/plugins/modules/vyos_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/modules/vyos_config.py')
-rw-r--r--plugins/modules/vyos_config.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/modules/vyos_config.py b/plugins/modules/vyos_config.py
index 60be02c8..eeb6bc44 100644
--- a/plugins/modules/vyos_config.py
+++ b/plugins/modules/vyos_config.py
@@ -34,7 +34,7 @@ version_added: 1.0.0
extends_documentation_fragment:
- vyos.vyos.vyos
notes:
-- Tested against VyOS 1.1.8 (helium).
+- Tested against VyOS 1.3.8, 1.4.2, the upcoming 1.5, and the rolling release of spring 2025.
- This module works with connection C(ansible.netcommon.network_cli). See L(the VyOS OS Platform Options,../network/user_guide/platform_vyos.html).
- To ensure idempotency and correct diff the configuration lines in the relevant module options should be similar to how they
appear if present in the running configuration on device including the indentation.
@@ -286,6 +286,7 @@ def sanitize_config(config, result):
def run(module, result):
# get the current active config from the node or passed in via
# the config param
+
config = module.params["config"] or get_config(module)
# create the candidate config object from the arguments
@@ -360,7 +361,7 @@ def main():
diff = run_commands(module, commands=["configure", "compare saved"])[1]
if diff not in {
"[edit]",
- "No changes between working and saved configurations.\n\n[edit]"
+ "No changes between working and saved configurations.\n\n[edit]",
}:
if not module.check_mode:
run_commands(module, commands=["save"])