mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-05 14:17:58 +00:00
use new move_config_to_node method
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
b5688f69a0
commit
27fa645e66
@ -1194,14 +1194,7 @@ sub phase3_cleanup {
|
|||||||
|
|
||||||
# transfer replication state before move config
|
# transfer replication state before move config
|
||||||
$self->transfer_replication_state() if $self->{is_replicated};
|
$self->transfer_replication_state() if $self->{is_replicated};
|
||||||
|
PVE::QemuConfig->move_config_to_node($vmid, $self->{node});
|
||||||
# move config to remote node
|
|
||||||
my $conffile = PVE::QemuConfig->config_file($vmid);
|
|
||||||
my $newconffile = PVE::QemuConfig->config_file($vmid, $self->{node});
|
|
||||||
|
|
||||||
die "Failed to move config to node '$self->{node}' - rename failed: $!\n"
|
|
||||||
if !rename($conffile, $newconffile);
|
|
||||||
|
|
||||||
$self->switch_replication_job_target() if $self->{is_replicated};
|
$self->switch_replication_job_target() if $self->{is_replicated};
|
||||||
|
|
||||||
if ($self->{livemigration}) {
|
if ($self->{livemigration}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user