]> git.proxmox.com Git - pve-container.git/commitdiff
fix #1618: do not double encode the description
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 16 Jan 2018 14:43:18 +0000 (15:43 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 25 Jan 2018 09:55:28 +0000 (10:55 +0100)
we already encode the description in 'write_config',
we do not need to do it here again

this lead to newlines also to be encoded instead of
splitting the description into lines and decode that

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/PVE/LXC/Config.pm

index 8d71f4ae4c65d407a2ce2037a0be07c8551a0a47..096986204c1f8b2f8d4a4be835229886960b431d 100644 (file)
@@ -958,7 +958,7 @@ sub update_pct_config {
            $conf->{$opt} = $value;
            PVE::LXC::write_cgroup_value("cpu", $vmid, "cpu.shares", $value);
        } elsif ($opt eq 'description') {
-           $conf->{$opt} = PVE::Tools::encode_text($value);
+           $conf->{$opt} = $value;
        } elsif ($opt =~ m/^net(\d+)$/) {
            my $netid = $1;
            my $net = PVE::LXC::Config->parse_lxc_network($value);