Revision 3d2ff14c
Added by Amos Benari over 10 years ago
app/views/compute_resources/form/_ovirt.html.erb | ||
---|---|---|
:id => 'test_connection_button',
|
||
:class => "btn + #{datacenters.empty? ? "btn-default" : "btn-success"}",
|
||
:'data-url' => test_connection_compute_resources_path) + image_tag('/assets/spinner.gif', :id => 'test_connection_indicator', :class => 'hide').html_safe }) %>
|
||
<% quotas = (f.object.uuid.nil? && controller.action_name != 'test_connection') ? [] : f.object.quotas rescue []%>
|
||
<% quotas = (f.object.uuid.nil? && controller.action_name != 'test_connection') ? [] : f.object.quotas.all rescue []%>
|
||
<%= select_f f, :ovirt_quota, quotas, :id, :name, {}, :label => _("Quota ID") %>
|
Also available in: Unified diff
fixes #3567 Editing an oVirt compute resource can throw errors loading quotas while loading page
(cherry picked from commit 2e66b04a2c92bc40fea1bfdc7f0414435754f49b)