mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Add Host - vlidate cluster section only if xenserver is xenserver
This commit is contained in:
parent
d202ce4c7a
commit
275785404c
@ -594,8 +594,11 @@ function showHostsTab() {
|
|||||||
isValid &= validateString("Host name", dialogBox.find("#host_hostname"), dialogBox.find("#host_hostname_errormsg"));
|
isValid &= validateString("Host name", dialogBox.find("#host_hostname"), dialogBox.find("#host_hostname_errormsg"));
|
||||||
isValid &= validateString("User name", dialogBox.find("#host_username"), dialogBox.find("#host_username_errormsg"));
|
isValid &= validateString("User name", dialogBox.find("#host_username"), dialogBox.find("#host_username_errormsg"));
|
||||||
isValid &= validateString("Password", dialogBox.find("#host_password"), dialogBox.find("#host_password_errormsg"));
|
isValid &= validateString("Password", dialogBox.find("#host_password"), dialogBox.find("#host_password_errormsg"));
|
||||||
|
//xenserver supports cluster. kvm doesn't support cluster.
|
||||||
|
if (getHypervisorType() != "kvm") {
|
||||||
if(clusterRadio == "new_cluster_radio")
|
if(clusterRadio == "new_cluster_radio")
|
||||||
isValid &= validateString("Cluster name", dialogBox.find("#new_cluster_name"), dialogBox.find("#new_cluster_name_errormsg"));
|
isValid &= validateString("Cluster name", dialogBox.find("#new_cluster_name"), dialogBox.find("#new_cluster_name_errormsg"));
|
||||||
|
}
|
||||||
if (!isValid) return;
|
if (!isValid) return;
|
||||||
|
|
||||||
var array1 = [];
|
var array1 = [];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user