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
pull/38877/head
John R Barker 7 years ago committed by GitHub
parent bb50c65769
commit 507423f111
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -54,7 +54,7 @@ class ActionModule(_ActionModule):
# strip out any keys that have two leading and two trailing # strip out any keys that have two leading and two trailing
# underscore characters # underscore characters
for key in result.keys(): for key in list(result.keys()):
if PRIVATE_KEYS_RE.match(key): if PRIVATE_KEYS_RE.match(key):
del result[key] del result[key]

Loading…
Cancel
Save