X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/567c0270bc7665e630bf5012e0fd2953fea462ce..3ba5aa15ea0156a4fce63dcb43b7f972b4c760df:/apps/workbench/app/models/virtual_machine.rb?ds=sidebyside diff --git a/apps/workbench/app/models/virtual_machine.rb b/apps/workbench/app/models/virtual_machine.rb index 1b67210837..5ff7798a95 100644 --- a/apps/workbench/app/models/virtual_machine.rb +++ b/apps/workbench/app/models/virtual_machine.rb @@ -15,4 +15,7 @@ class VirtualMachine < ArvadosBase {current_user_logins: {column_heading: "logins", type: 'array'}}, super] end + def friendly_link_name + (hostname && !hostname.empty?) ? hostname : uuid + end end