Correct verb on VM modify
This commit is contained in:
parent
65e3d153cb
commit
2005342a2d
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue