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>
xtype: 'pvePoolSelector',
fieldLabel: gettext('Resource Pool'),
name: 'pool',
- submitValue: false,
value: '',
allowBlank: true
},
delete kv.nodename;
delete kv.tmplstorage;
+ if (!kv.pool.length) {
+ delete kv.pool;
+ }
+
if (!kv.password.length && kv['ssh-public-keys']) {
delete kv.password;
}