From 6af2f57644bd9bbb9f70f55e705f23c8f7617c7f Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Tue, 12 Nov 2019 16:49:20 +0100 Subject: [PATCH] vmm: api: Fix the vm.info response payload We are returning a state and a config. Fixes: #431 Signed-off-by: Samuel Ortiz --- vmm/src/api/openapi/cloud-hypervisor.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vmm/src/api/openapi/cloud-hypervisor.yaml b/vmm/src/api/openapi/cloud-hypervisor.yaml index eca8aa815..a86463b25 100644 --- a/vmm/src/api/openapi/cloud-hypervisor.yaml +++ b/vmm/src/api/openapi/cloud-hypervisor.yaml @@ -141,8 +141,8 @@ components: - state type: object properties: - version: - type: string + config: + $ref: '#/components/schemas/VmConfig' state: type: string enum: [Created, Booted, Shutdown]