From 80650edb4d13de6e972fbbf90573ddcbb8a6b7db Mon Sep 17 00:00:00 2001 From: Martin Gracik Date: Wed, 23 Mar 2011 09:22:39 +0100 Subject: [PATCH] Wait for subprocess to finish --- src/pylorax/images.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pylorax/images.py b/src/pylorax/images.py index e2f2cd61..445fcd3c 100644 --- a/src/pylorax/images.py +++ b/src/pylorax/images.py @@ -666,6 +666,7 @@ class S390(object): p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE) + p.wait() # add cdboot.img to treeinfo data = {"cdboot.img": joinpaths(IMAGESDIR, "cdboot.img")}