mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-13 09:20:13 +00:00
Submit pool if non-empty in lxc CreateWizard
The lxc CreateWizard ignores the pool setting. That makes creating containers impossible for users who are restricted to using a pool. This patch fixes that. Signed-off-by: Andrew Neitsch <andrew@neitsch.ca>
This commit is contained in:
parent
9091a0eb12
commit
4998ae6f1f
@ -69,7 +69,6 @@ Ext.define('PVE.lxc.CreateWizard', {
|
||||
xtype: 'pvePoolSelector',
|
||||
fieldLabel: gettext('Resource Pool'),
|
||||
name: 'pool',
|
||||
submitValue: false,
|
||||
value: '',
|
||||
allowBlank: true
|
||||
},
|
||||
@ -295,6 +294,10 @@ Ext.define('PVE.lxc.CreateWizard', {
|
||||
delete kv.nodename;
|
||||
delete kv.tmplstorage;
|
||||
|
||||
if (!kv.pool.length) {
|
||||
delete kv.pool;
|
||||
}
|
||||
|
||||
if (!kv.password.length && kv['ssh-public-keys']) {
|
||||
delete kv.password;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user