We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7ce23e commit e8c711fCopy full SHA for e8c711f
app/presenters/volume_presenter.rb
@@ -4,10 +4,12 @@ def list(raw_volumes)
4
volumes = []
5
raw_volumes.each do |volume|
6
volume.each do |vol_id, attributes|
7
- attributes['vol_id'] = vol_id
8
- attributes.delete('bricks')
9
- attributes.delete('options')
10
- volumes << attributes
+ if attributes['deleted'] != true
+ attributes['vol_id'] = vol_id
+ attributes.delete('bricks')
+ attributes.delete('options')
11
+ volumes << attributes
12
+ end
13
end
14
15
volumes
0 commit comments