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

Fix suggested flavors sorting

do not use disk_template in sorting algorithm
parent 5322242e
......@@ -485,7 +485,7 @@
this.predefined_flavors_keys = _.keys(SUGGESTED_FLAVORS);
this.predefined_flavors_keys = _.sortBy(this.predefined_flavors_keys, _.bind(function(k){
var flv = this.predefined_flavors[k];
return (flv.ram * flv.cpu * flv.disk) + flv.disk_template;
return (flv.ram * flv.cpu * flv.disk);
}, this));
this.predefined = this.$(".predefined-list");
......
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