Skip to content

Commit

Permalink
Bug 1524309 - Repetitive storage volume deletion gives unexpected error`
Browse files Browse the repository at this point in the history
BZ 1524309: handle "volume doesn't exist" situation in raw_delete_volume:

https://bugzilla.redhat.com/show_bug.cgi?id=1524309
  • Loading branch information
sseago committed Feb 5, 2018
1 parent 80c6c78 commit bd95001
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def raw_delete_volume
:options => {
:subject => self,
}) do
with_provider_object(&:destroy)
with_provider_object {|volume| volume.try(:destroy) }
end
rescue => e
_log.error "volume=[#{name}], error: #{e}"
Expand Down

0 comments on commit bd95001

Please sign in to comment.