Correct verb on VM modify

This commit is contained in:
Joshua Boniface 2020-01-08 09:24:17 -05:00
parent 65e3d153cb
commit 2005342a2d
1 changed files with 2 additions and 2 deletions

View File

@ -136,12 +136,12 @@ def vm_modify(config, vm, xml, restart):
""" """
Modify the configuration of VM Modify the configuration of VM
API endpoint: POST /vm/{vm} API endpoint: PUT /vm/{vm}
API arguments: xml={xml}, restart={restart} API arguments: xml={xml}, restart={restart}
API schema: {"message":"{data}"} API schema: {"message":"{data}"}
""" """
request_uri = get_request_uri(config, '/vm/{vm}'.format(vm=vm)) request_uri = get_request_uri(config, '/vm/{vm}'.format(vm=vm))
response = requests.post( response = requests.put(
request_uri, request_uri,
params={ params={
'xml': xml, 'xml': xml,