[pve-devel] [RFC qemu-server 1/3] Insert new options in the Qemu config for the PVE Replica.

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Apr 4 15:17:13 CEST 2017


>> PVE::QemuServer::vmconfig_delete_pending_option($conf, $opt, $force);
>>               PVE::QemuConfig->write_config($vmid, $conf);
>> +        } elsif ($opt eq "replica" || $opt eq "reptarget") {
>> +            delete $conf->{$opt};
>> +            delete $conf->{replica} if $opt eq "reptarget";
>
> does:
>
> delete $conf->{reptarget} if $opt eq "replica";
>
> miss here to be complete?
> or in general just delete both options if we take the if branch?

Ok, forget this, your code makes sense here.




More information about the pve-devel mailing list