Skip to content

Commit

Permalink
Merge pull request #31754 from techhat/issue26498
Browse files Browse the repository at this point in the history
Check all providers, not just the current one
  • Loading branch information
Nicole Thomas committed Mar 9, 2016
2 parents 7ad521f + 08c6144 commit 249a360
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions salt/cloud/__init__.py
Expand Up @@ -1388,11 +1388,14 @@ def run_profile(self, profile, names, vm_overrides=None):
if main_cloud_config is None:
main_cloud_config = {}

mapped_providers = self.map_providers_parallel()
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(':')
mapped_providers = self.map_providers_parallel()
alias_data = mapped_providers.setdefault(alias, {})
vms = alias_data.setdefault(driver, {})

provider_details = self.opts['providers'][alias][driver].copy()
del provider_details['profiles']
Expand Down

0 comments on commit 249a360

Please sign in to comment.