|
|
3f6cae |
From f0ee2b03681f192c4779e934108eabf771b65c3c Mon Sep 17 00:00:00 2001
|
|
|
3f6cae |
From: Ivan Devat <idevat@redhat.com>
|
|
|
3f6cae |
Date: Tue, 19 Mar 2019 10:48:10 +0100
|
|
|
3f6cae |
Subject: [PATCH] squash bz1690304 GUI submitting of create cluster
|
|
|
3f6cae |
|
|
|
3f6cae |
add quotes around html attribute value
|
|
|
3f6cae |
|
|
|
3f6cae |
It fixes issue with node names containg dots. JQuery parsing failed when
|
|
|
3f6cae |
quotes were not around html attribute value in the case of value
|
|
|
3f6cae |
containing dots.
|
|
|
3f6cae |
|
|
|
3f6cae |
fix omitting link/quorum opts: webui cluster setup
|
|
|
3f6cae |
---
|
|
|
3f6cae |
pcsd/public/js/cluster-setup.js | 4 +++-
|
|
|
3f6cae |
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
3f6cae |
|
|
|
3f6cae |
diff --git a/pcsd/public/js/cluster-setup.js b/pcsd/public/js/cluster-setup.js
|
|
|
3f6cae |
index be0a22d5..fc927507 100644
|
|
|
3f6cae |
--- a/pcsd/public/js/cluster-setup.js
|
|
|
3f6cae |
+++ b/pcsd/public/js/cluster-setup.js
|
|
|
3f6cae |
@@ -82,7 +82,7 @@ clusterSetup.link.detail.refreshNodesNames = function(linkDetail, nodesNames){
|
|
|
3f6cae |
|
|
|
3f6cae |
var newAddresses = nodesNames.map(function(nodeName){
|
|
|
3f6cae |
return previousNodesNames.contains(nodeName)
|
|
|
3f6cae |
- ? linkDetail.find("[data-transport-addr-host="+nodeName+"]")
|
|
|
3f6cae |
+ ? linkDetail.find("[data-transport-addr-host='"+nodeName+"']")
|
|
|
3f6cae |
: clusterSetup.link.detail.createAddress(nodeName)
|
|
|
3f6cae |
;
|
|
|
3f6cae |
});
|
|
|
3f6cae |
@@ -391,6 +391,7 @@ clusterSetup.data.settings = function(clusterName, nodesNames){
|
|
|
3f6cae |
) {
|
|
|
3f6cae |
return value == "on" ? "1" : "0";
|
|
|
3f6cae |
}
|
|
|
3f6cae |
+ return value;
|
|
|
3f6cae |
},
|
|
|
3f6cae |
),
|
|
|
3f6cae |
},
|
|
|
3f6cae |
@@ -450,6 +451,7 @@ clusterSetup.data.settings = function(clusterName, nodesNames){
|
|
|
3f6cae |
if (name === "broadcast"){
|
|
|
3f6cae |
return value == "yes" ? "1" : "0";
|
|
|
3f6cae |
}
|
|
|
3f6cae |
+ return value;
|
|
|
3f6cae |
},
|
|
|
3f6cae |
);
|
|
|
3f6cae |
})
|
|
|
3f6cae |
--
|
|
|
3f6cae |
2.20.1
|
|
|
3f6cae |
|