a
This commit is contained in:
parent
85cff6eb89
commit
1f5f8ca9c0
2 changed files with 5 additions and 5 deletions
4
main.py
4
main.py
|
|
@ -30,7 +30,7 @@ def main():
|
|||
# mechanism because timeout mechanism only comes
|
||||
# when no other event is happening. It means under
|
||||
# heavy load there would not be a timeout event.
|
||||
if request_entry._type == "TIMEOUT":
|
||||
if request_entry.type == "TIMEOUT":
|
||||
|
||||
# Detect hosts that are dead and set their status
|
||||
# to "DEAD", and their VMs' status to "KILLED"
|
||||
|
|
@ -51,7 +51,7 @@ def main():
|
|||
hostname=pending_vm_entry.hostname)
|
||||
request_pool.put(r)
|
||||
|
||||
elif request_entry._type == RequestType.ScheduleVM:
|
||||
elif request_entry.type == RequestType.ScheduleVM:
|
||||
vm_entry = vm_pool.get(request_entry.uuid)
|
||||
client.client.delete(request_entry.key) # consume Request
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue