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
This commit is contained in:
guohliu
2013-04-19 14:50:27 +08:00
parent 7c2b662dc6
commit de57220c8d

View File

@@ -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)