mirror of
https://git.proxmox.com/git/qemu-server
synced 2026-01-01 22:52:01 +00:00
vm_stop: do not use ha commands if $migratedfrom is set
This commit is contained in:
parent
0a2da90b8b
commit
debe88829e
@ -1674,7 +1674,7 @@ __PACKAGE__->register_method({
|
||||
node => get_standard_option('pve-node'),
|
||||
vmid => get_standard_option('pve-vmid'),
|
||||
skiplock => get_standard_option('skiplock'),
|
||||
migratedfrom => get_standard_option('pve-node',{ optional => 1 }),
|
||||
migratedfrom => get_standard_option('pve-node', { optional => 1 }),
|
||||
timeout => {
|
||||
description => "Wait maximal timeout seconds.",
|
||||
type => 'integer',
|
||||
@ -1718,7 +1718,7 @@ __PACKAGE__->register_method({
|
||||
|
||||
my $storecfg = PVE::Storage::config();
|
||||
|
||||
if (&$vm_is_ha_managed($vmid) && $rpcenv->{type} ne 'ha') {
|
||||
if (&$vm_is_ha_managed($vmid) && ($rpcenv->{type} ne 'ha') && !defined($migratedfrom)) {
|
||||
|
||||
my $hacmd = sub {
|
||||
my $upid = shift;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user