[pve-devel] [PATCH] Change die to warn if a nohotplug feature will be change on a running CT.

Wolfgang Link w.link at proxmox.com
Fri Oct 23 11:33:46 CEST 2015


this is logical because we change all hotplug feature and the the changes are updated in the config.
---
 src/PVE/LXC.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
index 4b9ace5..3195fbd 100644
--- a/src/PVE/LXC.pm
+++ b/src/PVE/LXC.pm
@@ -1262,7 +1262,7 @@ sub update_pct_config {
 
     # This should be the last thing we do here
     if ($running && scalar(@nohotplug)) {
-	die "unable to modify " . join(',', @nohotplug) . " while container is running\n";
+	warn "unable to modify " . join(',', @nohotplug) . " while container is running\n";
     }
 }
 
-- 
2.1.4





More information about the pve-devel mailing list