[pve-devel] applied: [PATCH cluster 1/2] datacenter.cfg write: retransform migration property to string
Wolfgang Bumiller
w.bumiller at proxmox.com
Tue Dec 5 13:47:34 CET 2017
applied (patch 1 only)
On Fri, Dec 01, 2017 at 01:25:12PM +0100, Thomas Lamprecht wrote:
> We use parse_property_string in the parser to make life easier for
> code working with the migration format, but we did not retransform
> it back when writing datacenter.cfg
>
> Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
> ---
> data/PVE/Cluster.pm | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm
> index 9a248ed..df2758f 100644
> --- a/data/PVE/Cluster.pm
> +++ b/data/PVE/Cluster.pm
> @@ -1435,6 +1435,10 @@ sub write_datacenter_config {
> $cfg->{migration}->{type} = ($migration_unsecure) ? 'insecure' : 'secure';
> }
>
> + if (my $migration = $cfg->{migration}) {
> + $cfg->{migration} = PVE::JSONSchema::print_property_string($migration, $migration_format);
> + }
> +
> return PVE::JSONSchema::dump_config($datacenter_schema, $filename, $cfg);
> }
>
> --
> 2.11.0
More information about the pve-devel
mailing list