|
|
|
@ -19,14 +19,14 @@
|
|
|
|
|
from __future__ import (absolute_import, division, print_function)
|
|
|
|
|
__metaclass__ = type
|
|
|
|
|
|
|
|
|
|
import glob
|
|
|
|
|
import os
|
|
|
|
|
import re
|
|
|
|
|
import time
|
|
|
|
|
import glob
|
|
|
|
|
|
|
|
|
|
from ansible.module_utils.six.moves.urllib.parse import urlsplit
|
|
|
|
|
from ansible.module_utils._text import to_text
|
|
|
|
|
from ansible.plugins.action.sros import ActionModule as _ActionModule
|
|
|
|
|
from ansible.module_utils._text import to_text
|
|
|
|
|
from ansible.module_utils.six.moves.urllib.parse import urlsplit
|
|
|
|
|
from ansible.utils.vars import merge_hash
|
|
|
|
|
|
|
|
|
|
PRIVATE_KEYS_RE = re.compile('__.+__')
|
|
|
|
@ -40,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
|
|
|
|
@ -55,7 +55,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):
|
|
|
|
|
if PRIVATE_KEYS_RE.match(key):
|
|
|
|
|
del result[key]
|
|
|
|
|
|
|
|
|
|