Don't stacktrace when provisioning instances on softlayer_hw

This commit is contained in:
rallytime 2015-07-13 08:49:32 -06:00
parent 60391c97b5
commit b9bf5304da

View File

@ -213,6 +213,11 @@ def create(vm_):
vm_['profile']) is False:
return False
# Since using "provider: <provider-engine>" is deprecated, alias provider
# to use driver: "driver: <provider-engine>"
if 'provider' in vm_:
vm_['driver'] = vm_.pop('provider')
salt.utils.cloud.fire_event(
'event',
'starting create',
@ -220,7 +225,7 @@ def create(vm_):
{
'name': vm_['name'],
'profile': vm_['profile'],
'provider': vm_['provider'],
'provider': vm_['driver'],
},
transport=__opts__['transport']
)
@ -496,7 +501,7 @@ def create(vm_):
{
'name': vm_['name'],
'profile': vm_['profile'],
'provider': vm_['provider'],
'provider': vm_['driver'],
},
transport=__opts__['transport']
)