This commit is contained in:
ahmadbilalkhalid 2019-09-17 11:49:40 +05:00
parent bd43dc8c9d
commit 315fef93fa

View file

@ -49,7 +49,8 @@ class CreateVM(Resource):
"status": "", "status": "",
"image_uuid": data["image_uuid"], "image_uuid": data["image_uuid"],
"log": [], "log": [],
"storage_attachment": [] "storage_attachment": [],
"vnc_socket": None
} }
client.put(vm_key, vm_entry, value_in_json=True) client.put(vm_key, vm_entry, value_in_json=True)
@ -189,7 +190,7 @@ class ListUserVM(Resource):
"specs": vm.value["specs"], "specs": vm.value["specs"],
"status": vm.value["status"], "status": vm.value["status"],
"hostname": vm.value["hostname"], "hostname": vm.value["hostname"],
"vnc_socket": vm.value["vnc_socket"] "vnc_socket": None or vm.value["vnc_socket"]
} }
) )
return {"message": return_vms}, 200 return {"message": return_vms}, 200