datacenter config: Actually write the replication config

We get the following error without this patch:

```
$ pvesh set /cluster/options
400 validation error in '/etc/pve/datacenter.cfg'
replication: type check ('string') failed - got HASH
```

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
Link: https://lore.proxmox.com/20250718081349.125228-2-m.sandoval@proxmox.com
This commit is contained in:
Maximiliano Sandoval 2025-07-18 10:13:48 +02:00 committed by Thomas Lamprecht
parent d38cfaefc0
commit 127cd9be3b

View file

@ -615,6 +615,10 @@ sub write_datacenter_config {
$cfg->{migration} = PVE::JSONSchema::print_property_string($migration, $migration_format);
}
if (ref(my $replication = $cfg->{replication})) {
$cfg->{replication} = PVE::JSONSchema::print_property_string($replication, $replication_format);
}
if (defined(my $next_id = $cfg->{'next-id'})) {
$next_id = parse_property_string($next_id_format, $next_id) if !ref($next_id);