Skip to content

Commit

Permalink
Merge pull request #4245 from nimrodshn/persistent_volume_summary_bug
Browse files Browse the repository at this point in the history
Passing capacity hash to values broke PV screen
  • Loading branch information
martinpovolny committed Jul 4, 2018
2 parents b8c990d + 52d86fa commit f097d6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/helpers/persistent_volume_helper/textual_summary.rb
Expand Up @@ -32,7 +32,8 @@ def textual_group_smart_management

def textual_group_capacity
labels = [_("Resource"), _("Quantity")]
TextualMultilabel.new(_("Capacity"), :labels => labels, :values => @record.capacity)
values = (@record.capacity || {}).collect { |type, capacity| [type.to_s, capacity.to_s] }
TextualMultilabel.new(_("Capacity"), :labels => labels, :values => values)
end

#
Expand Down

0 comments on commit f097d6c

Please sign in to comment.