Merge pull request #45935 from rallytime/bp-45742

Back-port #45742 to 2017.7.3
This commit is contained in:
Nicole Thomas 2018-02-09 09:02:25 -05:00 committed by GitHub
commit 0d74151c71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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