diff --git a/app/presenters/volume_presenter.rb b/app/presenters/volume_presenter.rb index 4995e9a..4e8e1d2 100644 --- a/app/presenters/volume_presenter.rb +++ b/app/presenters/volume_presenter.rb @@ -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