From de57220c8da35af9931ed24f7ae302cd06a00962 Mon Sep 17 00:00:00 2001 From: guohliu Date: Fri, 19 Apr 2013 14:50:27 +0800 Subject: 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 --- nova/virt/hyperv/pathutils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit