Commit 2a1e8e7a authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Proper gui/os image metadata handling

parent 7fe4aeba
......@@ -29,6 +29,14 @@
display_size: function() {
return this.get_readable_size();
},
get_os: function() {
return this.get_meta('os');
},
get_gui: function() {
return this.get_meta('gui');
}
})
......
......@@ -1234,6 +1234,10 @@
this.get_image(function(){}).get_os() || "okeanos" : "okeanos");
},
get_gui: function() {
return this.get_meta('GUI');
},
// get public ip addresses
// TODO: public network is always the 0 index ???
get_addresses: function(net_id) {
......
......@@ -1086,8 +1086,8 @@
set_detail("description");
set_detail("name");
set_detail("os", _(image.escape("OS")).capitalize());
set_detail("gui", image.get("GUI"));
set_detail("os", _(image.get_os()).capitalize());
set_detail("gui", image.get_gui());
set_detail("size", _.escape(image.get_readable_size()));
set_detail("kernel");
},
......
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