diff options
author | omnom62 <75066712+omnom62@users.noreply.github.com> | 2025-05-08 05:52:44 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-08 05:52:44 +1000 |
commit | 098f31c6fe7a6310594656efc0af5a2739ede82b (patch) | |
tree | a459e02e00c8848638e66a6ff121853a3f6a217c /plugins/modules/vyos_config.py | |
parent | 7a4f22fc4a63bad749b4128495d7dae8917d0b0e (diff) | |
download | vyos.vyos-main.tar.gz vyos.vyos-main.zip |
* T7259 get_config() fix
* fix get_config calls
* vyos_config match=none integration test case
* get_config() update
Diffstat (limited to 'plugins/modules/vyos_config.py')
-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 60be02c8..c6bc9959 100644 --- a/plugins/modules/vyos_config.py +++ b/plugins/modules/vyos_config.py @@ -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"]) |