From b9bf5304da9f796e4b28c8c4105ff4bd15d85a94 Mon Sep 17 00:00:00 2001 From: rallytime Date: Mon, 13 Jul 2015 08:49:32 -0600 Subject: [PATCH] Don't stacktrace when provisioning instances on softlayer_hw --- salt/cloud/clouds/softlayer_hw.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/salt/cloud/clouds/softlayer_hw.py b/salt/cloud/clouds/softlayer_hw.py index ed754b6b8e..dd22a33f6c 100644 --- a/salt/cloud/clouds/softlayer_hw.py +++ b/salt/cloud/clouds/softlayer_hw.py @@ -213,6 +213,11 @@ def create(vm_): vm_['profile']) is False: return False + # Since using "provider: " is deprecated, alias provider + # to use driver: "driver: " + 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'] )