From d62f9714b0f255c59970f462de4361285d703a65 Mon Sep 17 00:00:00 2001 From: rallytime Date: Wed, 2 Sep 2015 17:29:18 -0600 Subject: [PATCH] Fix provider --> driver change for salt-cloud lxc --- salt/cloud/clouds/lxc.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/salt/cloud/clouds/lxc.py b/salt/cloud/clouds/lxc.py index 8106d9a8f5..3d26ee9935 100644 --- a/salt/cloud/clouds/lxc.py +++ b/salt/cloud/clouds/lxc.py @@ -427,11 +427,16 @@ def create(vm_, call=None): 'lxc_profile', vm_.get('container_profile', None)) + # 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', 'salt/cloud/{0}/creating'.format(vm_['name']), {'name': vm_['name'], 'profile': profile, - 'provider': vm_['provider'], }, + 'provider': vm_['driver'], }, transport=__opts__['transport']) ret = {'name': vm_['name'], 'changes': {}, 'result': True, 'comment': ''} if 'pub_key' not in vm_ and 'priv_key' not in vm_: