diff --git a/main.py b/main.py index 0eff321..d7cc5b7 100755 --- a/main.py +++ b/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