Removed the chained copy

This commit is contained in:
Marc Vieira-Cardinal (VA2MVC) 2018-02-05 18:43:41 -05:00 committed by rallytime
parent ad1150fad4
commit 6a0b5f7af3
No known key found for this signature in database
GPG Key ID: E8F1A4B90D0DEA19

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 _providers.copy():
if provider not in providers:
_providers.pop(provider)
return opts