From bd95001c799083a7bc49689550abefeb660ade68 Mon Sep 17 00:00:00 2001 From: Scott Seago Date: Mon, 5 Feb 2018 09:57:58 -0500 Subject: [PATCH] Bug 1524309 - Repetitive storage volume deletion gives unexpected error` BZ 1524309: handle "volume doesn't exist" situation in raw_delete_volume: https://bugzilla.redhat.com/show_bug.cgi?id=1524309 --- .../manageiq/providers/openstack/cloud_manager/cloud_volume.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/manageiq/providers/openstack/cloud_manager/cloud_volume.rb b/app/models/manageiq/providers/openstack/cloud_manager/cloud_volume.rb index 82dcfb578..82375a4ca 100644 --- a/app/models/manageiq/providers/openstack/cloud_manager/cloud_volume.rb +++ b/app/models/manageiq/providers/openstack/cloud_manager/cloud_volume.rb @@ -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}"