From 0d79268a6d2b97eb670c7ee01e56e4f9ae7d6b27 Mon Sep 17 00:00:00 2001 From: Samer Deeb Date: Wed, 11 Apr 2018 07:01:54 -0700 Subject: [PATCH] issue:38321 fix onyx_config module failed while using python = 3.5 (#38343) --- lib/ansible/plugins/action/onyx_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/onyx_config.py b/lib/ansible/plugins/action/onyx_config.py index 3b84e2adb54..a290d5cdfd8 100644 --- a/lib/ansible/plugins/action/onyx_config.py +++ b/lib/ansible/plugins/action/onyx_config.py @@ -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]