Merge pull request #32345 from nmadhok/patch-4

[2015.8] Check if profile key exists in vm_ dict
This commit is contained in:
Nicole Thomas 2016-04-05 10:16:35 -06:00
commit 59aca733ea

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: