]> git.proxmox.com Git - pve-manager.git/blobdiff - PVE/API2/Pool.pm
api: pool update: rename 'transfer' parameter to 'allow-move'
[pve-manager.git] / PVE / API2 / Pool.pm
index ffcc3946ea1330c23db00449e793ab53fd1135fd..51ac71941d86dd30b1066dfb74ced4e9e7573d10 100644 (file)
@@ -131,7 +131,7 @@ __PACKAGE__->register_method ({
                type => 'string',  format => 'pve-storage-id-list',
                optional => 1,
            },
-           transfer => {
+           'allow-move' => {
                description => 'Allow adding a guest even if already in another pool.'
                    .' The guest will be removed from its current pool and added to this one.',
                type => 'boolean',
@@ -173,8 +173,8 @@ __PACKAGE__->register_method ({
                    } else {
                        die "VM $vmid is already a pool member\n" if $pool_config->{vms}->{$vmid};
                        if (defined(my $existing_pool = $usercfg->{vms}->{$vmid})) {
-                           die "VM $vmid belongs already to pool '$existing_pool' and 'transfer' is not set\n"
-                            if !$param->{transfer};
+                           die "VM $vmid belongs already to pool '$existing_pool' and 'allow-move' is not set\n"
+                            if !$param->{'allow-move'};
 
                            $rpcenv->check($authuser, "/pool/$existing_pool", ['Pool.Allocate']);
                            delete $usercfg->{pools}->{$existing_pool}->{vms}->{$vmid};