Fix waiting for loop devices (#1462150)

Missing change for the previous commit.

Resolves: rhbz#1462150
This commit is contained in:
Brian C. Lane 2017-06-23 08:27:07 -07:00
parent bbfc50b185
commit aaf1cc3894
1 changed files with 1 additions and 1 deletions

View File

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