summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--iscsi.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/iscsi.py b/iscsi.py
index 51640b58e..6ff69f10b 100644
--- a/iscsi.py
+++ b/iscsi.py
@@ -191,6 +191,9 @@ class iscsiTarget:
# Wait for udev to create the devices for the just added disks
if ret:
+ # It is possible when we get here the events for the new devices
+ # are not send yet, so sleep to make sure the events are fired
+ time.sleep(1)
iutil.execWithRedirect("/sbin/udevsettle", [ ],
stdout = "/dev/tty5", stderr="/dev/tty5")