[pve-devel] [PATCH container 2/2] Addition to #1544, implement delete lock in lxc api path

Alwin Antreich a.antreich at proxmox.com
Fri Mar 16 17:30:42 CET 2018


Signed-off-by: Alwin Antreich <a.antreich at proxmox.com>
---
note: not sure, if there needs to be some extra handling for deleting the lock

 src/PVE/LXC/Config.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm
index 7b27be1..08139df 100644
--- a/src/PVE/LXC/Config.pm
+++ b/src/PVE/LXC/Config.pm
@@ -870,6 +870,8 @@ sub update_pct_config {
 		}
 	    } elsif ($opt eq 'unprivileged') {
 		die "unable to delete read-only option: '$opt'\n";
+	    } elsif ($opt eq 'lock') {
+		delete $conf->{$opt};
 	    } else {
 		die "implement me (delete: $opt)"
 	    }
--
2.11.0





More information about the pve-devel mailing list