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.pull/17888/head
parent
9f673e0725
commit
2addc09050
Loading…
Reference in New Issue