From 90631be81b26d842218a13bfebff31adcd1c93ec Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Wed, 10 Jul 2013 04:34:42 -0400 Subject: [PATCH] fix nil bugs --- apps/workbench/app/views/virtual_machines/index.html.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/workbench/app/views/virtual_machines/index.html.erb b/apps/workbench/app/views/virtual_machines/index.html.erb index 2ba5712e70..efe146ab8a 100644 --- a/apps/workbench/app/views/virtual_machines/index.html.erb +++ b/apps/workbench/app/views/virtual_machines/index.html.erb @@ -1,5 +1,7 @@ <%= render partial: 'application/index' %> +
+

Sample ~/.ssh/config section:

@@ -7,7 +9,7 @@ Sample ~/.ssh/config section:
 Host *.arvados
   ProxyCommand ssh -p2222 turnout@switchyard.<%= Rails.configuration.arvados_v1_base.match(/\/\/(.*?)\//).andand[1] || 'xyzzy.arvadosapi.com' %> -x -a $SSH_PROXY_FLAGS %h
-<% if @objects.first.current_user_logins.andand.first %>
+<% if @objects.first.andand.current_user_logins.andand.first %>
   User <%= @objects.first.current_user_logins.andand.first %>
 <% end %>
 
@@ -17,7 +19,7 @@ Sample login command:

-ssh <%= @objects.first.andand.hostname.sub(/\..*/,'') or 'vm-hostname' %>.arvados
+ssh <%= @objects.first.andand.hostname.andand.sub(/\..*/,'') or 'vm-hostname' %>.arvados
 

-- 2.30.2