Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
0b897d9b
Commit
0b897d9b
authored
Nov 22, 2013
by
Kostas Papadimitriou
Browse files
ui: Remove dependency on vm_hostname_format setting
parent
00ca4937
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/ui/static/snf/js/models.js
View file @
0b897d9b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment