a
This commit is contained in:
parent
85cff6eb89
commit
1f5f8ca9c0
2 changed files with 5 additions and 5 deletions
6
Pipfile.lock
generated
6
Pipfile.lock
generated
|
@ -184,11 +184,11 @@
|
|||
},
|
||||
"ucloud-common": {
|
||||
"hashes": [
|
||||
"sha256:33610916b5ed2abef9ef5b334b2ed2a56f620446178530e629498959b501d525",
|
||||
"sha256:a9865183fdfdfd9f134e8b58dfba8f35395ad9727e56e820973b88c086f76a04"
|
||||
"sha256:bb0ff7526368a80a9ac70cfb4bc71a9fe6df463f329d53baf24c7320e4b2ba00",
|
||||
"sha256:db76b07c39ed057dc83a91092dddc72f3df8102f4977c430c28ed915b38c9667"
|
||||
],
|
||||
"index": "pypi",
|
||||
"version": "==0.5.2"
|
||||
"version": "==0.5.3"
|
||||
},
|
||||
"wcwidth": {
|
||||
"hashes": [
|
||||
|
|
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
Reference in a new issue