From 314049aa712380092c95aa096752020169a6ab64 Mon Sep 17 00:00:00 2001 From: Rohit Date: Wed, 22 May 2019 22:14:59 +0530 Subject: [PATCH] Asa config fix28 backport (#56562) * asa_config fix (#56559) Signed-off-by: Rohit Thakur (cherry picked from commit 06c050e9bd7ab467dd6c10ed073928778c4b1b41) * asa_config_content_fix Signed-off-by: Rohit Thakur --- changelogs/fragments/asa_config_content_fix.yaml | 2 ++ lib/ansible/modules/network/asa/asa_config.py | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 changelogs/fragments/asa_config_content_fix.yaml diff --git a/changelogs/fragments/asa_config_content_fix.yaml b/changelogs/fragments/asa_config_content_fix.yaml new file mode 100644 index 00000000000..46efada8f64 --- /dev/null +++ b/changelogs/fragments/asa_config_content_fix.yaml @@ -0,0 +1,2 @@ +bugfixes: +- asa_config fix diff --git a/lib/ansible/modules/network/asa/asa_config.py b/lib/ansible/modules/network/asa/asa_config.py index 4e3ab197410..ad49118e8af 100644 --- a/lib/ansible/modules/network/asa/asa_config.py +++ b/lib/ansible/modules/network/asa/asa_config.py @@ -279,9 +279,9 @@ def run(module, result): contents = module.params['config'] if not contents: contents = get_config(module) - config = NetworkConfig(indent=1, contents=contents) - configobjs = candidate.difference(config, path=path, match=match, - replace=replace) + config = NetworkConfig(indent=1, contents=contents) + configobjs = candidate.difference(config, path=path, match=match, + replace=replace) else: configobjs = candidate.items