mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 14:21:26 -07:00
Network *_config action plugin updates (#43838)
* Compatibility fixes for ${network_os}_config action plugins
This commit is contained in:
parent
ceb49bdf12
commit
35f625ee3b
15 changed files with 28 additions and 33 deletions
|
@ -25,9 +25,8 @@ import time
|
|||
import glob
|
||||
|
||||
from ansible.plugins.action.junos import ActionModule as _ActionModule
|
||||
from ansible.module_utils._text import to_text
|
||||
from ansible.module_utils._text import to_text, to_bytes
|
||||
from ansible.module_utils.six.moves.urllib.parse import urlsplit
|
||||
from ansible.module_utils._text import to_bytes
|
||||
from ansible.utils.vars import merge_hash
|
||||
|
||||
PRIVATE_KEYS_RE = re.compile('__.+__')
|
||||
|
@ -41,7 +40,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue