Fix edgeos_config: {backup: yes} (#37619)

* Fix edgeos_config: {backup: yes}

* Add actual plugin copy
This commit is contained in:
Nathaniel Case 2018-03-21 12:48:09 -04:00 committed by Sam Doran
parent 8daa80e5bb
commit 6aed74a97d
2 changed files with 115 additions and 2 deletions

View file

@ -41,7 +41,7 @@ class ActionModule(_ActionModule):
try:
self._handle_template()
except ValueError as exc:
return dict(failed=True, msg=exc.message)
return dict(failed=True, msg=to_text(exc))
result = super(ActionModule, self).run(tmp, task_vars)
del tmp # tmp no longer has any effect
@ -56,7 +56,7 @@ class ActionModule(_ActionModule):
# strip out any keys that have two leading and two trailing
# underscore characters
for key in result.keys():
for key in list(result.keys()):
if PRIVATE_KEYS_RE.match(key):
del result[key]