Merge branch '2257-inequality-conditions' into 2290-user-activity
[arvados.git] / apps / workbench / app / models / node.rb
index 0a324ff5139bb88d5fcd77a65c3b638616182bdd..6518047b8d161df66605bb5f34ad61132cd3bb8c 100644 (file)
@@ -3,6 +3,6 @@ class Node < ArvadosBase
     current_user and current_user.is_admin
   end
   def friendly_link_name
-    self.hostname
+    (hostname && !hostname.empty?) ? hostname : uuid
   end
 end