[Pkg-libvirt-commits] [libvirt-sandbox] 20/42: docker: check exit status of qemu-img command
Guido Guenther
agx at moszumanska.debian.org
Sat May 27 16:27:08 UTC 2017
This is an automated email from the git hooks/post-receive script.
agx pushed a commit to branch debian/experimental
in repository libvirt-sandbox.
commit b1661e7aae9ffab9479bd463ce1e1c19812569a0
Author: Daniel P. Berrange <berrange at redhat.com>
Date: Fri Jul 15 13:46:35 2016 +0100
docker: check exit status of qemu-img command
Use check_call() instead of call() so that we abort if
something goes wrong with qemu-img
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
libvirt-sandbox/image/sources/docker.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libvirt-sandbox/image/sources/docker.py b/libvirt-sandbox/image/sources/docker.py
index 275a082..fc2faf2 100644
--- a/libvirt-sandbox/image/sources/docker.py
+++ b/libvirt-sandbox/image/sources/docker.py
@@ -276,7 +276,7 @@ class DockerSource(base.Source):
cmd.append(templateImage)
if parentImage is None:
cmd.append("10G")
- subprocess.call(cmd)
+ subprocess.check_call(cmd)
if parentImage is None:
self.format_disk(templateImage, "qcow2", connect)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libvirt-sandbox.git
More information about the Pkg-libvirt-commits
mailing list