From 16f3b20a31ce983304bfa67408d67cd56d4f807d Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Sat, 26 Jun 2010 15:02:18 +0200 Subject: [PATCH] qubes.py: Correct retcode checking logic on clone_template() --- dom0/qvm-core/qubes.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index 2c7a7730..bfa6bdd6 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -643,7 +643,6 @@ class QubesTemplateVm(QubesVm): format(src_template_vm.private_img, self.private_img) # We prefer to use Linux's cp, because it nicely handles sparse files retcode = subprocess.call (["cp", src_template_vm.private_img, self.private_img]) - retcode = 0 if retcode != 0: raise IOError ("Error while copying {0} to {1}".\ format(src_template_vm.private_img, self.private_img)) @@ -653,7 +652,6 @@ class QubesTemplateVm(QubesVm): format(src_template_vm.root_img, self.root_img) # We prefer to use Linux's cp, because it nicely handles sparse files retcode = subprocess.call (["cp", src_template_vm.root_img, self.root_img]) - retcode = 0 if retcode != 0: raise IOError ("Error while copying {0} to {1}".\ format(src_template_vm.root_img, self.root_img))