Commit b05aada1 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

ui: Use SNF:allow_create flag to decide available flavors in vm wizard

parent fab694d0
......@@ -662,14 +662,13 @@
},
update_flavors_data: function() {
this.flavors = storage.flavors.active();
this.flavors = this.get_active_flavors();
this.flavors_data = storage.flavors.get_data(this.flavors);
var self = this;
var set = false;
// FIXME: validate current flavor
if (!this.current_flavor) {
_.each(this.valid_predefined, function(key) {
var flv = self.predefined_flavors[key];
......@@ -930,7 +929,9 @@
},
get_active_flavors: function() {
return storage.flavors.active();
return storage.flavors.active().filter(function(flv) {
return flv.get("SNF:allow_create")
});
},
get_valid_flavors: function() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment