Skip to content

Instantly share code, notes, and snippets.

@domcleal
Created September 19, 2013 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domcleal/6620345 to your computer and use it in GitHub Desktop.
Save domcleal/6620345 to your computer and use it in GitHub Desktop.
diff --git a/app/views/compute_resources_vms/index/_vmware.html.erb b/app/views/compute_resources_vms/index/_vmware.html.erb
index 2d6177a..0a04b39 100644
--- a/app/views/compute_resources_vms/index/_vmware.html.erb
+++ b/app/views/compute_resources_vms/index/_vmware.html.erb
@@ -12,7 +12,7 @@
<tbody>
<% @vms.each do |vm| -%>
<tr>
- <td><%= link_to_if_authorized vm.name, hash_for_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.identity) %></td>
+ <td><%= link_to_if_authorized vm.name, hash_for_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.identity) rescue raise("vm: #{vm.name} (#{vm.identity}, #{vm.send(:raw)})") %></td>
<td><%= vm.path %></td>
<td><%= vm.cpus %></td>
<td> <%= number_to_human_size vm.memory %></td>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment