manageiq-smartstate 0.2.18 → 0.2.18.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c375a8e1ae0165077dff1b18225e80ce51ded2c3
4
- data.tar.gz: 5c65cb6de3d701145c75f32d192b81490e8a3dc2
3
+ metadata.gz: 4b5d3f16341f777e8898434cb020defb3c65cf0e
4
+ data.tar.gz: a182bd98a38c356a58074cc63b4dafca2e33bf38
5
5
  SHA512:
6
- metadata.gz: c7d0d5570b0ef896f8b4004c4cc6b9c0336b3e71d2eda6453b234d179d21b6ad6c33ae992720bebf19a05e5c3a15cb42e06024bc81384496b59f21bab57e44ca
7
- data.tar.gz: 354b7ae54a9d175c67f8dd48ccd69fdbf8fd16debe8da4d0e54c4c9f5eae2b4ec1c18027ea8139266731cb52fc5620822fa874298d3ef7e4ff0788801588d1f6
6
+ metadata.gz: 76cab0918545b5a4f2a8584ca4d54e456bcd2e60bdbe30bcb91de7d71274092d3a1029ada5ec62ec822d753e41c9a2a015dd83a02bda738e4e6f721da43b8529
7
+ data.tar.gz: e9774c092351fbe8dfd763ad9cdafcbf4a7ccf077660e8e737758117e4723eb05c646ec387dacf2306fd7bd49f7821c9f7cd35552fcec06740cae31c36486bb0
@@ -137,8 +137,14 @@ class MiqOpenStackInstance
137
137
  $log.warn "#{log_prefix}: pointer from instance doesn't match #{snapshot_image_id}"
138
138
  end
139
139
  $log.info "#{log_prefix}: deleting snapshot image"
140
- if (volume_snapshot_id = get_image_metadata_snapshot_id(compute_service.images.get(image_id)))
141
- delete_volume_snapshot(volume_snapshot_id)
140
+
141
+ image = compute_service.images.get(image_id)
142
+ image.metadata.each do |m|
143
+ next unless m.key == "block_device_mapping"
144
+ m.value.each do |volume_snapshot|
145
+ volume_snapshot_id = volume_snapshot["snapshot_id"]
146
+ delete_volume_snapshot(volume_snapshot_id) if volume_snapshot_id
147
+ end
142
148
  end
143
149
  snapshot.destroy
144
150
  snapshot_metadata.destroy
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Smartstate
3
- VERSION = "0.2.18".freeze
3
+ VERSION = "0.2.18.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-smartstate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.18
4
+ version: 0.2.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-17 00:00:00.000000000 Z
11
+ date: 2019-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: azure-armrest