Merge branch 'master' into 2798-go-keep-client
[arvados.git] / apps / workbench / app / models / virtual_machine.rb
index 1b672108375555517539245316f5bbc16dfa930c..5ff7798a959162eb27d27cf9c35fd41748bd35ac 100644 (file)
@@ -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