mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-02 23:31:25 -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,7 +25,6 @@ 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('__.+__')
|
||||
|
||||
|
||||
|
@ -52,7 +51,7 @@ class ActionModule(_ActionModule):
|
|||
|
||||
# strip out any keys that have two leading and two trailing
|
||||
# underscore characters
|
||||
for key in list(result.keys()):
|
||||
for key in list(result):
|
||||
if PRIVATE_KEYS_RE.match(key):
|
||||
del result[key]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue