mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Avoid RunTimeError (dictionary changed size during iteration) with keys()
Fixes #24573
This commit is contained in:
parent
65c59ec2ea
commit
6b2a00e947
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class CloudClient(object):
|
|||
if a.get('provider', '')]
|
||||
if providers:
|
||||
_providers = opts.get('providers', {})
|
||||
for provider in six.iterkeys(_providers):
|
||||
for provider in _providers.keys():
|
||||
if provider not in providers:
|
||||
_providers.pop(provider)
|
||||
return opts
|
||||
|
|
Loading…
Add table
Reference in a new issue