From b8c5a95fa71e5342df2ea5fb8ead4df8a828f12c Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 20 Nov 2015 14:04:28 +0100 Subject: [PATCH] fix pct resize parameter list Resize accidentally used json_config_properties giving it all the options of pct create (which obviously aren't required...) --- src/PVE/API2/LXC.pm | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm index 165e327..87d5698 100644 --- a/src/PVE/API2/LXC.pm +++ b/src/PVE/API2/LXC.pm @@ -950,27 +950,26 @@ __PACKAGE__->register_method({ }, parameters => { additionalProperties => 0, - properties => PVE::LXC::json_config_properties( - { - node => get_standard_option('pve-node'), - vmid => get_standard_option('pve-vmid', { completion => \&PVE::LXC::complete_ctid }), - disk => { - type => 'string', - description => "The disk you want to resize.", - enum => [PVE::LXC::mountpoint_names()], - }, - size => { - type => 'string', - pattern => '\+?\d+(\.\d+)?[KMGT]?', - description => "The new size. With the '+' sign the value is added to the actual size of the volume and without it, the value is taken as an absolute one. Shrinking disk size is not supported.", - }, - digest => { - type => 'string', - description => 'Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.', - maxLength => 40, - optional => 1, - } - }), + properties => { + node => get_standard_option('pve-node'), + vmid => get_standard_option('pve-vmid', { completion => \&PVE::LXC::complete_ctid }), + disk => { + type => 'string', + description => "The disk you want to resize.", + enum => [PVE::LXC::mountpoint_names()], + }, + size => { + type => 'string', + pattern => '\+?\d+(\.\d+)?[KMGT]?', + description => "The new size. With the '+' sign the value is added to the actual size of the volume and without it, the value is taken as an absolute one. Shrinking disk size is not supported.", + }, + digest => { + type => 'string', + description => 'Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.', + maxLength => 40, + optional => 1, + } + }, }, returns => { type => 'string', -- 2.39.2