summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguohliu <guohliu@cn.ibm.com>2013-04-19 14:50:27 +0800
committerguohliu <guohliu@cn.ibm.com>2013-04-19 14:50:27 +0800
commitde57220c8da35af9931ed24f7ae302cd06a00962 (patch)
treed5786a371e241de0f76b5db2562feb074d2cce54
parent7c2b662dc6923b88ce9d3ae3a7262368cceff9b2 (diff)
downloadnova-de57220c8da35af9931ed24f7ae302cd06a00962.tar.gz
nova-de57220c8da35af9931ed24f7ae302cd06a00962.tar.xz
nova-de57220c8da35af9931ed24f7ae302cd06a00962.zip
Fix hyperv copy file error logged incorrect
This patch just fix hyperv copy file error message incorrect, missing src and dest value. Fixes bug #1170580 Change-Id: I309fd67b3f491c9be872ff9cdd58f6364a26a96b
-rw-r--r--nova/virt/hyperv/pathutils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/virt/hyperv/pathutils.py b/nova/virt/hyperv/pathutils.py
index 6c57b8f82..6e54bf4c8 100644
--- a/nova/virt/hyperv/pathutils.py
+++ b/nova/virt/hyperv/pathutils.py
@@ -68,7 +68,8 @@ class PathUtils(object):
# It can be replaced with Win32 API calls to avoid the process
# spawning overhead.
if subprocess.call(['cmd.exe', '/C', 'copy', '/Y', src, dest]):
- raise IOError(_('The file copy from %(src)s to %(dest)s failed'))
+ raise IOError(_('The file copy from %(src)s to %(dest)s failed')
+ % locals())
def rmtree(self, path):
shutil.rmtree(path)