[pve-devel] [PATCH manager 4/5] gui: ceph osd: do not send empty values

Dominik Csapak d.csapak at proxmox.com
Wed Jun 5 15:59:40 CEST 2019


that leads to a parameter exception

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/ceph/OSD.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
index f1789df6..7697cb30 100644
--- a/www/manager6/ceph/OSD.js
+++ b/www/manager6/ceph/OSD.js
@@ -23,6 +23,15 @@ Ext.define('PVE.CephCreateOsd', {
 	    items: [
 		{
 		    xtype: 'inputpanel',
+		    onGetValues: function(values) {
+			Object.keys(values || {}).forEach(function(name) {
+			    if (values[name] === '') {
+				delete values[name];
+			    }
+			});
+
+			return values;
+		    },
 		    column1: [
 			{
 			    xtype: 'pveDiskSelector',
-- 
2.11.0





More information about the pve-devel mailing list