mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #31754 from techhat/issue26498
Check all providers, not just the current one
This commit is contained in:
commit
249a3602eb
1 changed files with 7 additions and 4 deletions
|
@ -1388,11 +1388,14 @@ class Cloud(object):
|
|||
if main_cloud_config is None:
|
||||
main_cloud_config = {}
|
||||
|
||||
profile_details = self.opts['profiles'][profile]
|
||||
alias, driver = profile_details['provider'].split(':')
|
||||
mapped_providers = self.map_providers_parallel()
|
||||
alias_data = mapped_providers.setdefault(alias, {})
|
||||
vms = alias_data.setdefault(driver, {})
|
||||
profile_details = self.opts['profiles'][profile]
|
||||
vms = {}
|
||||
for prov in mapped_providers:
|
||||
prov_name = mapped_providers[prov].keys()[0]
|
||||
for node in mapped_providers[prov][prov_name]:
|
||||
vms[node] = mapped_providers[prov][prov_name][node]
|
||||
alias, driver = profile_details['provider'].split(':')
|
||||
|
||||
provider_details = self.opts['providers'][alias][driver].copy()
|
||||
del provider_details['profiles']
|
||||
|
|
Loading…
Add table
Reference in a new issue