Fixes: #1646
Change-Id: If8e4fbe27e9320abf203eca82de6666271b00f86
Signed-off-by: Gui Chen <gui.chen@intel.com>
raise MountError("Failed to map partitions for '%s'" %
d['disk'].device)
+ # FIXME: need a better way to fix the latency
+ import time
+ time.sleep(1)
+
if not os.path.exists(mapperdev):
# load mapper device if not updated
runner.quiet([self.dmsetup, "mknodes"])
raise MountError("Failed to load mapper devices for '%s'" %
d['disk'].device)
- # FIXME: need a better way to fix the latency
- import time
- time.sleep(1)
d['mapped'] = True
def __unmap_partitions(self):