]> git.proxmox.com Git - pve-container.git/commitdiff
Add mp to required in pct set mount-point.
authorWolfgang Link <w.link@proxmox.com>
Fri, 15 Jan 2016 06:25:08 +0000 (07:25 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 15 Jan 2016 08:04:46 +0000 (09:04 +0100)
If map is not set you get a warning of an empty variable without real information.
And when you try to start the container, it will not start without an explication.

src/PVE/LXC.pm

index 860901f7e5bd6766cc777b6ce3e7e6b62ba41150..af3b9b78f59352059b8783a2de1ff1413e584591 100644 (file)
@@ -357,7 +357,6 @@ my $mp_desc = {
        type => 'string',
        format_description => 'Path',
        description => 'Path to the mountpoint as seen from inside the container.',
-       optional => 1,
     },
 };
 PVE::JSONSchema::register_format('pve-ct-mountpoint', $mp_desc);