[pve-devel] [PATCH qemu-server] Change target in replication-state when replication direction is switched.

Dietmar Maurer dietmar at proxmox.com
Wed Jun 21 11:02:21 CEST 2017


> > +	foreach my $key (keys %{$stateobj->{$vmid}}) {
> > +	    if ($key =~ /^(.*\/)\Q$mig_node\E$/) {
> > +		$tmp_state->{"$1$new_target"} = $stateobj->{$vmid}->{$key};
> > +	    } else {
> > +		$tmp_state->{$key} = $stateobj->{$vmid}->{$key};
> > +	    }
> > +	}
> > +
> 
> I do really like that loop, we can do without:

s/I do/I do not/




More information about the pve-devel mailing list