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:
parent
d38cfaefc0
commit
127cd9be3b
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue