Change time.sleep to greenthread.sleep
time is not imported. use greenthread to make it consistent with the rest of the module Change-Id: Iea6b2b0f49faa5e48198b61ff1b0ef52da58f48b
This commit is contained in:
@@ -2554,7 +2554,7 @@ class LibvirtDriver(driver.ComputeDriver):
|
||||
LOG.warn(_("plug_vifs() failed %(cnt)d."
|
||||
"Retry up to %(max_retry)d for %(hostname)s.")
|
||||
% locals())
|
||||
time.sleep(1)
|
||||
greenthread.sleep(1)
|
||||
|
||||
def pre_block_migration(self, ctxt, instance_ref, disk_info_json):
|
||||
"""Preparation block migration.
|
||||
|
||||
Reference in New Issue
Block a user