issue:38321 fix onyx_config module failed while using python = 3.5 (#38343) (#38869)

* issue:38321 fix onyx_config module failed while using python = 3.5 (#38343)

(cherry picked from commit 0d79268a6d)

* changelog
This commit is contained in:
John R Barker 2018-04-17 13:16:03 +01:00 committed by GitHub
parent bb50c65769
commit 507423f111
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- Fix onyx_config action plugin when used on Python 3 https://github.com/ansible/ansible/pull/38343

View file

@ -54,7 +54,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]