From: Thomas Lamprecht Date: Thu, 24 Jan 2019 13:18:55 +0000 (+0100) Subject: api: resource migrate: add description for node parameter X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=2eb4a7efca0c89ab95a4345093ef57a44020624a;p=pve-ha-manager.git api: resource migrate: add description for node parameter Signed-off-by: Thomas Lamprecht --- diff --git a/src/PVE/API2/HA/Resources.pm b/src/PVE/API2/HA/Resources.pm index 10acedf..637d72b 100644 --- a/src/PVE/API2/HA/Resources.pm +++ b/src/PVE/API2/HA/Resources.pm @@ -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' },