fix a del in cloud vmware that crash when the key isn't there

This commit is contained in:
Rémi Jouannet 2018-12-17 17:45:38 +01:00 committed by Gareth J. Greenaway
parent 747dd699af
commit 09a8e6e7f7
No known key found for this signature in database
GPG key ID: 10B62F8A7CAD7A41

View file

@ -2655,7 +2655,8 @@ def create(vm_):
)
event_kwargs = vm_.copy()
del event_kwargs['password']
if event_kwargs.get('password'):
del event_kwargs['password']
try:
__utils__['cloud.fire_event'](