Asa config fix28 backport (#56562)

* asa_config fix (#56559)

Signed-off-by: Rohit Thakur <rohitthakur2590@outlook.com>
(cherry picked from commit 06c050e9bd)

* asa_config_content_fix

Signed-off-by: Rohit Thakur <rohitthakur2590@outlook.com>
This commit is contained in:
Rohit 2019-05-22 22:14:59 +05:30 committed by Toshio Kuratomi
parent 2f767bda9b
commit 314049aa71
2 changed files with 5 additions and 3 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- asa_config fix <https://github.com/ansible/ansible/pull/56559>

View file

@ -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