[pve-devel] [PATCH container] ui: lxc: allow empty environment variables

Filip Schauer f.schauer at proxmox.com
Mon Nov 17 16:23:35 CET 2025


Allow configuring empty environment variables in the Web UI, matching
the changes in pve-container 9a5f5ce5cfdb ("config: allow empty
environment variables")

Signed-off-by: Filip Schauer <f.schauer at proxmox.com>
---
 www/manager6/lxc/EnvEdit.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/www/manager6/lxc/EnvEdit.js b/www/manager6/lxc/EnvEdit.js
index 673729fe..c32d4b1b 100644
--- a/www/manager6/lxc/EnvEdit.js
+++ b/www/manager6/lxc/EnvEdit.js
@@ -50,7 +50,6 @@ Ext.define('PVE.lxc.EnvVariableField', {
         },
         formulas: {
             valueEmpty: (get) => !get('value')?.length,
-            nameEmpty: (get) => !get('name')?.length,
         },
     },
 
@@ -75,7 +74,7 @@ Ext.define('PVE.lxc.EnvVariableField', {
             xtype: 'proxmoxtextfield',
             emptyText: gettext('Value'),
             bind: {
-                allowBlank: '{nameEmpty}',
+                allowBlank: true,
                 value: '{value}',
             },
             submitValue: false,
-- 
2.47.3





More information about the pve-devel mailing list