a
This commit is contained in:
parent
bd43dc8c9d
commit
315fef93fa
1 changed files with 3 additions and 2 deletions
5
main.py
5
main.py
|
@ -49,7 +49,8 @@ class CreateVM(Resource):
|
|||
"status": "",
|
||||
"image_uuid": data["image_uuid"],
|
||||
"log": [],
|
||||
"storage_attachment": []
|
||||
"storage_attachment": [],
|
||||
"vnc_socket": None
|
||||
}
|
||||
client.put(vm_key, vm_entry, value_in_json=True)
|
||||
|
||||
|
@ -189,7 +190,7 @@ class ListUserVM(Resource):
|
|||
"specs": vm.value["specs"],
|
||||
"status": vm.value["status"],
|
||||
"hostname": vm.value["hostname"],
|
||||
"vnc_socket": vm.value["vnc_socket"]
|
||||
"vnc_socket": None or vm.value["vnc_socket"]
|
||||
}
|
||||
)
|
||||
return {"message": return_vms}, 200
|
||||
|
|
Loading…
Reference in a new issue