vmid => get_standard_option('pve-vmid', { completion => \&PVE::LXC::complete_ctid }),
target => get_standard_option('pve-node', {
description => "Target node.",
- completion => \&PVE::LXC::complete_migration_target,
+ completion => \&PVE::Cluster::complete_migration_target,
}),
online => {
type => 'boolean',
return $res;
}
-sub complete_migration_target {
-
- my $res = [];
-
- my $nodelist = PVE::Cluster::get_nodelist();
- foreach my $node (@$nodelist) {
- next if $node eq $nodename;
- push @$res, $node;
- }
-
- return $res;
-}
-
my $complete_ctid_full = sub {
my ($running) = @_;