summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)