[pve-devel] [PATCH v2 container 12/18] skip pending changes while cloning

Oguz Bektas o.bektas at proxmox.com
Mon Sep 30 14:44:44 CEST 2019


Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
---
 src/PVE/API2/LXC.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index 9c040d1..2cb9f9d 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -1441,6 +1441,7 @@ __PACKAGE__->register_method({
 		# Replace the 'disk' lock with a 'create' lock.
 		$newconf->{lock} = 'create';
 
+		delete $newconf->{pending};
 		delete $newconf->{template};
 		if ($param->{hostname}) {
 		    $newconf->{hostname} = $param->{hostname};
-- 
2.20.1




More information about the pve-devel mailing list