]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
api: resource migrate: add description for node parameter
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 24 Jan 2019 13:18:55 +0000 (14:18 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 24 Jan 2019 13:19:36 +0000 (14:19 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/API2/HA/Resources.pm

index 10acedfc60bf2e3c401e537812d55e5181beae17..637d72b2f5c453feac3d8e5ae4e8dd73019e940b 100644 (file)
@@ -326,8 +326,10 @@ __PACKAGE__->register_method ({
        properties => {
            sid => get_standard_option('pve-ha-resource-or-vm-id',
                                      { completion => \&PVE::HA::Tools::complete_sid }),
-           node => get_standard_option('pve-node',
-                                      { completion => \&PVE::Cluster::get_nodelist }),
+           node => get_standard_option('pve-node', {
+               completion =>  \&PVE::Cluster::complete_migration_target,
+               description => "Target node.",
+           }),
        },
     },
     returns => { type => 'null' },
@@ -359,8 +361,10 @@ __PACKAGE__->register_method ({
        properties => {
            sid => get_standard_option('pve-ha-resource-or-vm-id',
                                      { completion => \&PVE::HA::Tools::complete_sid }),
-           node => get_standard_option('pve-node',
-                                      { completion => \&PVE::Cluster::get_nodelist }),
+           node => get_standard_option('pve-node', {
+               completion =>  \&PVE::Cluster::complete_migration_target,
+               description => "Target node.",
+           }),
        },
     },
     returns => { type => 'null' },