mirror of https://github.com/ansible/ansible.git
cast/copy keys() to list to avoid py3 errors
In py3, dict.keys() is a view and not a copy of the
dicts keys, so attempting to delete items from the dict
while iterating over the keys results int
RuntimeError: dictionary changed size during iteration
Resolve by casting .keys() to a list() type.
(cherry picked from commit 2addc09050)
pull/17941/head
parent
f4b1d87ec0
commit
5109d50adb
Loading…
Reference in New Issue