Commit 0b897d9b authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

ui: Remove dependency on vm_hostname_format setting

parent 00ca4937
......@@ -1336,15 +1336,7 @@
},
get_hostname: function() {
var hostname = this.get_meta('hostname') || this.get('fqdn');
if (!hostname) {
if (synnefo.config.vm_hostname_format) {
hostname = synnefo.config.vm_hostname_format.format(this.id);
} else {
hostname = 'unknown';
}
}
return hostname;
return = this.get_meta('hostname') || this.get('fqdn') || synnefo.config.no_fqdn_message;
},
// get actions that the user can execute
......
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