Check if profile key exists in vm_ dict

This commit is contained in:
Nitin Madhok 2016-04-04 18:31:47 -04:00
parent e1ef4a9d66
commit 42d7a54240

View file

@ -2004,7 +2004,7 @@ def create(vm_):
'''
try:
# Check for required profile parameters before sending any API calls.
if config.is_profile_configured(__opts__,
if vm_['profile'] and config.is_profile_configured(__opts__,
__active_provider_name__ or 'vmware',
vm_['profile'],
vm_=vm_) is False: