mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
don't try to execute a function that is not available
This commit is contained in:
parent
42fb514b44
commit
2e134d0e18
@ -33,4 +33,7 @@ class Cloud(object):
|
||||
Create/Verify the vms in the vm data
|
||||
'''
|
||||
for vm_ in self.opts['vm']:
|
||||
fun = '{0}.create'.format(self.provider(vm_))
|
||||
if not fun in self.clouds:
|
||||
print('Public cloud provider {0} is not available'.format(self.provider(vm_)))
|
||||
self.clouds['{0}.create'.format(self.provider(vm_))](vm_)
|
||||
|
Loading…
Reference in New Issue
Block a user