From 2005342a2d20c03c6f26b1792264fa44f62ddf1f Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 8 Jan 2020 09:24:17 -0500 Subject: [PATCH] Correct verb on VM modify --- client-cli/cli_lib/vm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client-cli/cli_lib/vm.py b/client-cli/cli_lib/vm.py index 14e27ec2..54aed5b3 100644 --- a/client-cli/cli_lib/vm.py +++ b/client-cli/cli_lib/vm.py @@ -136,12 +136,12 @@ def vm_modify(config, vm, xml, restart): """ Modify the configuration of VM - API endpoint: POST /vm/{vm} + API endpoint: PUT /vm/{vm} API arguments: xml={xml}, restart={restart} API schema: {"message":"{data}"} """ request_uri = get_request_uri(config, '/vm/{vm}'.format(vm=vm)) - response = requests.post( + response = requests.put( request_uri, params={ 'xml': xml,