Merge pull request #43932 from techhat/moddict

Don't try to modify dict while looping through it
This commit is contained in:
Mike Place 2017-10-06 15:20:53 -06:00 committed by GitHub
commit d9530e3c52

View File

@ -234,7 +234,7 @@ class CloudClient(object):
if a.get('provider', '')]
if providers:
_providers = opts.get('providers', {})
for provider in list(_providers):
for provider in list(_providers).copy():
if provider not in providers:
_providers.pop(provider)
return opts