This commit is contained in:
ahmadbilalkhalid 2019-09-13 15:40:15 +05:00
commit 1f5f8ca9c0
2 changed files with 5 additions and 5 deletions

View file

@ -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