From aaf1cc389436579dd21e18b8169f10e71c5c7403 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Fri, 23 Jun 2017 08:27:07 -0700 Subject: [PATCH] Fix waiting for loop devices (#1462150) Missing change for the previous commit. Resolves: rhbz#1462150 --- src/pylorax/imgutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pylorax/imgutils.py b/src/pylorax/imgutils.py index 32e99b9d..4cf0370c 100644 --- a/src/pylorax/imgutils.py +++ b/src/pylorax/imgutils.py @@ -150,7 +150,7 @@ def loop_attach(outfile): dev = runcmd_output(["losetup", "--find", "--show", outfile]) # Sometimes the loop device isn't ready yet, make extra sure before returning - loop_waitfor(dev, outfile) + loop_waitfor(dev.strip(), outfile) return dev.strip() def loop_detach(loopdev):