diff options
| author | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-01-25 13:34:50 -0600 |
|---|---|---|
| committer | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-01-25 13:34:50 -0600 |
| commit | a6052241ec7bce94b81e8d4fa1d43353e4eec51b (patch) | |
| tree | ad4a2dc6a1495bf546d2095ff9f975714ba81421 /nova/utils.py | |
| parent | 5ff189808d45582f0799c14eaaec687a3cf8ad5e (diff) | |
| parent | b2d0a77c53d1bd108d233e58f68655381cec4e16 (diff) | |
| download | nova-a6052241ec7bce94b81e8d4fa1d43353e4eec51b.tar.gz nova-a6052241ec7bce94b81e8d4fa1d43353e4eec51b.tar.xz nova-a6052241ec7bce94b81e8d4fa1d43353e4eec51b.zip | |
merge with trunk
Diffstat (limited to 'nova/utils.py')
| -rw-r--r-- | nova/utils.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nova/utils.py b/nova/utils.py index 6d3ddd092..2f3bd2894 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -138,7 +138,7 @@ def execute(cmd, process_input=None, addl_env=None, check_exit_code=True): result = obj.communicate() obj.stdin.close() if obj.returncode: - LOG.debug(_("Result was %s") % (obj.returncode)) + LOG.debug(_("Result was %s") % obj.returncode) if check_exit_code and obj.returncode != 0: (stdout, stderr) = result raise ProcessExecutionError(exit_code=obj.returncode, @@ -214,9 +214,11 @@ def get_my_linklocal(interface): else: return 'fe00::' except IndexError as ex: - LOG.warn(_("Couldn't get Link Local IP of %s :%s"), interface, ex) + LOG.warn(_("Couldn't get Link Local IP of %(interface)s :%(ex)s") + % locals()) except ProcessExecutionError as ex: - LOG.warn(_("Couldn't get Link Local IP of %s :%s"), interface, ex) + LOG.warn(_("Couldn't get Link Local IP of %(interface)s :%(ex)s") + % locals()) except: return 'fe00::' |
