From 9f938720f158889252fa1db44be96745fa48e1ff Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Sun, 17 Jun 2012 04:05:37 -0400 Subject: Update common code to support pep 1.3. bug 1014216 Change-Id: I3f8fa2e11c9d3f3d34fb20f65ce886bb9c94463d --- openstack/common/utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'openstack/common/utils.py') diff --git a/openstack/common/utils.py b/openstack/common/utils.py index dee09ac..e782e89 100644 --- a/openstack/common/utils.py +++ b/openstack/common/utils.py @@ -118,13 +118,13 @@ def execute(*cmd, **kwargs): LOG.debug(_('Result was %s') % _returncode) if (isinstance(check_exit_code, int) and not isinstance(check_exit_code, bool) and - _returncode != check_exit_code): + _returncode != check_exit_code): (stdout, stderr) = result raise exception.ProcessExecutionError( - exit_code=_returncode, - stdout=stdout, - stderr=stderr, - cmd=' '.join(cmd)) + exit_code=_returncode, + stdout=stdout, + stderr=stderr, + cmd=' '.join(cmd)) return result except exception.ProcessExecutionError: if not attempts: -- cgit