Skip to content

Commit

Permalink
Stop displaying deleted volumes in tendrl-ui
Browse files Browse the repository at this point in the history
Signed-off-by: GowthamShanmugasundaram <[email protected]>
  • Loading branch information
GowthamShanmugam committed Jun 18, 2019
1 parent b7ce23e commit e8c711f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/presenters/volume_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ def list(raw_volumes)
volumes = []
raw_volumes.each do |volume|
volume.each do |vol_id, attributes|
attributes['vol_id'] = vol_id
attributes.delete('bricks')
attributes.delete('options')
volumes << attributes
if attributes['deleted'] != true
attributes['vol_id'] = vol_id
attributes.delete('bricks')
attributes.delete('options')
volumes << attributes
end
end
end
volumes
Expand Down

0 comments on commit e8c711f

Please sign in to comment.