From cbefa4d3fdd5119af47fa2523a72d5c576d23f1c Mon Sep 17 00:00:00 2001 From: Alexandru Bleotu Date: Thu, 21 Sep 2017 06:42:52 -0400 Subject: [PATCH] Fixed except statement --- salt/states/esxcluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/states/esxcluster.py b/salt/states/esxcluster.py index 4152c6f6df..aa1ad881cd 100644 --- a/salt/states/esxcluster.py +++ b/salt/states/esxcluster.py @@ -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)