> @@ -848,13 +877,21 @@ sub phase3 { > my $volids = $self->{volumes}; > return if $self->{phase2errors}; > > + my $rep_cfg = PVE::ReplicationConfig->new(); > + my $new_target = $self->{opts}->{node}; Why $self->{opts}->{node} ? (instead of $self->{node})