Permalink
Browse files

Vms are created, deployment scripts still need work

  • Loading branch information...
1 parent 072fc3c commit 342aa0c66de144c0304b9eeb66dd5ea527d766e0 @thatch45 thatch45 committed May 2, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 saltcloud/create.py
View
@@ -39,7 +39,8 @@ def conn(self, vm_):
if 'provider' in self.opts:
prov = self.opts['provider']
if 'location' in self.opts:
- prov += '_{0}'.format(self.opts['location'])
+ if self.opts['location']:
+ prov += '_{0}'.format(self.opts['location'])
if not hasattr(Provider, prov):
return None
driver = get_driver(getattr(Provider, prov.split('_')[0]))
@@ -91,7 +92,7 @@ def size(self, conn, vm_):
'''
Return the vm's size object
'''
- sizes = conn.list.sizes()
+ sizes = conn.list_sizes()
if not 'size' in vm_:
return sizes[0]
if isinstance(vm_['size'], int):

0 comments on commit 342aa0c

Please sign in to comment.