[pve-devel] [PATCH manager] fix #1385: display no rbd user by default

Dominik Csapak d.csapak at proxmox.com
Thu May 18 09:42:17 CEST 2017


when having an rbd storage with no user, we displayed 'admin' by default,
this patch sets '' and will be overwritten from the backend if a value is set

when creating a rbd storage, the textfield still has 'admin' in
there by default

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/storage/RBDEdit.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/storage/RBDEdit.js b/www/manager6/storage/RBDEdit.js
index d8ae300d..64776e6e 100644
--- a/www/manager6/storage/RBDEdit.js
+++ b/www/manager6/storage/RBDEdit.js
@@ -47,7 +47,7 @@ Ext.define('PVE.storage.RBDInputPanel', {
 	    {
 		xtype: me.isCreate ? 'textfield' : 'displayfield',
 		name: 'username',
-		value: 'admin',
+		value: me.isCreate ? 'admin': '',
 		fieldLabel: gettext('User name'),
 		allowBlank: true
 	    }
-- 
2.11.0





More information about the pve-devel mailing list