[pve-devel] [PATCH v3 container 13/19] skip pending changes while cloning

Oguz Bektas o.bektas at proxmox.com
Mon Oct 14 10:28:45 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 6832f83..71eb110 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