mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Ozones: do not allow creating vdc with non clustered resources
(cherry picked from commit b3b68c0fdc24f3bc1373bee8ad914d2792da6bea)
This commit is contained in:
parent
a4880ecabf
commit
135edec07f
@ -241,7 +241,6 @@ var vdc_actions = {
|
||||
call: oZones.Zone.cluster,
|
||||
callback: function(req, list_json){
|
||||
var options='<option value="">Please select</option>';
|
||||
options += '<option value="-">None</option>';
|
||||
$.each(list_json,function(){
|
||||
options += '<option value="'+this.CLUSTER.ID+'">'+this.CLUSTER.NAME+'</option>';
|
||||
});
|
||||
@ -440,7 +439,7 @@ function updateVDCInfo(req,vdc_json){
|
||||
};
|
||||
|
||||
function inCluster(resCluster, selCluster){
|
||||
if (selCluster == "-")//cluster none
|
||||
if (selCluster == "-")//cluster none, unused
|
||||
return resCluster == "-1";
|
||||
else return resCluster == selCluster;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user