mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-17 14:58:13 +00:00
Pass *args to VM_CLASS.
Move Config the the base manager. More checks for projects (UUID, makedirs). Return error 500 when a VMError exception is raised. Some more progress to VirtualBox.
This commit is contained in:
@ -33,6 +33,7 @@ class VPCSHandler:
|
||||
r"/vpcs",
|
||||
status_codes={
|
||||
201: "VPCS instance created",
|
||||
400: "Invalid project UUID",
|
||||
409: "Conflict"
|
||||
},
|
||||
description="Create a new VPCS instance",
|
||||
@ -43,7 +44,7 @@ class VPCSHandler:
|
||||
vpcs = VPCS.instance()
|
||||
vm = yield from vpcs.create_vm(request.json["name"],
|
||||
request.json["project_uuid"],
|
||||
uuid=request.json.get("uuid"),
|
||||
request.json.get("uuid"),
|
||||
console=request.json.get("console"),
|
||||
script_file=request.json.get("script_file"))
|
||||
response.json(vm)
|
||||
|
Reference in New Issue
Block a user