api: fix spacing and punctuation in shutdown and stop descriptions

Add missing spaces and full-stops and wrap strings according to Perl
style guide.

Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
This commit is contained in:
Friedrich Weber 2024-04-18 15:46:34 +02:00 committed by Thomas Lamprecht
parent 63eda17045
commit b04a334eab

View File

@ -3017,8 +3017,8 @@ __PACKAGE__->register_method({
method => 'POST', method => 'POST',
protected => 1, protected => 1,
proxyto => 'node', proxyto => 'node',
description => "Stop virtual machine. The qemu process will exit immediately. This" . description => "Stop virtual machine. The qemu process will exit immediately. This"
"is akin to pulling the power plug of a running computer and may damage the VM data", ." is akin to pulling the power plug of a running computer and may damage the VM data.",
permissions => { permissions => {
check => ['perm', '/vms/{vmid}', [ 'VM.PowerMgmt' ]], check => ['perm', '/vms/{vmid}', [ 'VM.PowerMgmt' ]],
}, },
@ -3173,8 +3173,9 @@ __PACKAGE__->register_method({
method => 'POST', method => 'POST',
protected => 1, protected => 1,
proxyto => 'node', proxyto => 'node',
description => "Shutdown virtual machine. This is similar to pressing the power button on a physical machine." . description => "Shutdown virtual machine. This is similar to pressing the power button on a"
"This will send an ACPI event for the guest OS, which should then proceed to a clean shutdown.", ." physical machine. This will send an ACPI event for the guest OS, which should then"
." proceed to a clean shutdown.",
permissions => { permissions => {
check => ['perm', '/vms/{vmid}', [ 'VM.PowerMgmt' ]], check => ['perm', '/vms/{vmid}', [ 'VM.PowerMgmt' ]],
}, },