def get_blockdev(): dev = blockdev(VOLUME_NAME) for i in range(10): if not dev.ready(): time.sleep(1) assert dev.ready() return dev
def get_blockdev(volume): dev = blockdev(volume) for i in range(10): if not dev.ready(): time.sleep(1) assert dev.ready() return dev