Fixed except statement

This commit is contained in:
Alexandru Bleotu 2017-09-21 06:42:52 -04:00
parent ee0dcd7b67
commit cbefa4d3fd

View File

@ -258,7 +258,7 @@ def cluster_configured(name, cluster_config):
'comment': '\n'.join(comments),
'changes': changes})
return ret
except CommandExecutionError as exc:
except salt.exceptions.CommandExecutionError as exc:
log.error('Error: {0}\n{1}'.format(exc, traceback.format_exc()))
if si:
__salt__['vsphere.disconnect'](si)