api: move disk: schema indentation and style-nit fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-11-11 14:00:57 +01:00
parent c41439ac5b
commit f519ab0b76

View File

@ -3321,23 +3321,23 @@ __PACKAGE__->register_method({
completion => \&PVE::QemuServer::complete_storage, completion => \&PVE::QemuServer::complete_storage,
optional => 1, optional => 1,
}), }),
'format' => { 'format' => {
type => 'string', type => 'string',
description => "Target Format.", description => "Target Format.",
enum => [ 'raw', 'qcow2', 'vmdk' ], enum => [ 'raw', 'qcow2', 'vmdk' ],
optional => 1, optional => 1,
}, },
delete => { delete => {
type => 'boolean', type => 'boolean',
description => "Delete the original disk after successful copy. By default the " . description => "Delete the original disk after successful copy. By default the"
"original disk is kept as unused disk.", ." original disk is kept as unused disk.",
optional => 1, optional => 1,
default => 0, default => 0,
}, },
digest => { digest => {
type => 'string', type => 'string',
description => 'Prevent changes if current configuration file has different SHA1 " . description => 'Prevent changes if current configuration file has different SHA1"
"digest. This can be used to prevent concurrent modifications.', ." digest. This can be used to prevent concurrent modifications.',
maxLength => 40, maxLength => 40,
optional => 1, optional => 1,
}, },
@ -3350,15 +3350,15 @@ __PACKAGE__->register_method({
}, },
'target-disk' => { 'target-disk' => {
type => 'string', type => 'string',
description => "The config key the disk will be moved to on the target VM " . description => "The config key the disk will be moved to on the target VM"
"(for example, ide0 or scsi1). Default is the source disk key.", ." (for example, ide0 or scsi1). Default is the source disk key.",
enum => [PVE::QemuServer::Drive::valid_drive_names_with_unused()], enum => [PVE::QemuServer::Drive::valid_drive_names_with_unused()],
optional => 1, optional => 1,
}, },
'target-digest' => { 'target-digest' => {
type => 'string', type => 'string',
description => 'Prevent changes if current configuration file of the target VM has " . description => 'Prevent changes if the current config file of the target VM has a"
"a different SHA1 digest. This can be used to prevent concurrent modifications.', ." different SHA1 digest. This can be used to detect concurrent modifications.',
maxLength => 40, maxLength => 40,
optional => 1, optional => 1,
}, },