Skip to content

Commit e8c711f

Browse files
Stop displaying deleted volumes in tendrl-ui
Signed-off-by: GowthamShanmugasundaram <gshanmug@redhat.com>
1 parent b7ce23e commit e8c711f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/presenters/volume_presenter.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ def list(raw_volumes)
44
volumes = []
55
raw_volumes.each do |volume|
66
volume.each do |vol_id, attributes|
7-
attributes['vol_id'] = vol_id
8-
attributes.delete('bricks')
9-
attributes.delete('options')
10-
volumes << attributes
7+
if attributes['deleted'] != true
8+
attributes['vol_id'] = vol_id
9+
attributes.delete('bricks')
10+
attributes.delete('options')
11+
volumes << attributes
12+
end
1113
end
1214
end
1315
volumes

0 commit comments

Comments
 (0)