Commit fa74c2e6 authored by Oleg Borisenko's avatar Oleg Borisenko
Browse files

Time fix for tapelibrary to get responsible

parent 131019ab
......@@ -168,8 +168,8 @@ class TapeManager:
self.mountpoint = None"Unmounted tape %s successfully", self.drives[0][self.PRIMARY_VOLUME_TAG])
# sleep is needed to make library not busy; it seems that we can not eject tape right after unmount"Sleeping for 150 seconds to get drive responsible")
time.sleep(150)"Sleeping for 210 seconds to get drive responsible")
self.df = 0
empty_slot = self.find_first_empty_magazine_slot()
if not empty_slot:
......@@ -432,4 +432,4 @@ class TapeManager:
return tape
if tape.state == models.TapeState.inuse:
return tape
raise Exception("Assert: unknown tape.state")
\ No newline at end of file
raise Exception("Assert: unknown tape.state")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment