Merge pull request #16425 from stanvit/cloudclient_create_fix_16424

Issue #16424: List all providers when creating salt-cloud instance without profile
This commit is contained in:
Joseph Hall 2014-10-30 10:18:29 -06:00
commit 3e83730526

View File

@ -365,7 +365,7 @@ class CloudClient(object):
'delvol_on_destroy': True})
'''
mapper = salt.cloud.Map(self._opts_defaults())
providers = mapper.map_providers_parallel()
providers = self.opts['providers']
if provider in providers:
provider += ':{0}'.format(providers[provider].keys()[0])
else: