manageiq-smartstate 0.2.22 → 0.2.23

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: b1d24be0511290fa29a5fff5cb44781de61848c8
4
- data.tar.gz: 6f5919a4cfdd3a9aa96a8bccf32e2542c46374da
3
+ metadata.gz: e8eef7c82120801ecfa16b92e487e837bebab649
4
+ data.tar.gz: 2736b5d2d4f12b6089e32de36d071507696bd55a
5
5
  SHA512:
6
- metadata.gz: b5b7055d8ad41d06ffcfb088d9b15ecc4e71e869de043ae19f7ee37956b51d6c3e09513ecaff4841bf144f287bdaec61e4d6219a4f88c67094a3d4980956cdf5
7
- data.tar.gz: 7a981805bcdbe3ca58aaa6ba0957f9294607ac31dc5313a29d5a59e50b4ad5c612daf3800f7dabb6899fb7aa31a5dc06548f3ea7f043b8e7cc9e8086a7f0aa93
6
+ metadata.gz: 925dbb492e59ef0b02f39cfd58011a50fed100aa7549322acaecae9de5ce2815e471de6f3ec07c296a3f5fa833bbce94c006a565ad24f6e798765848380ec220
7
+ data.tar.gz: 67cf93ff45b1d115859bf21cbbf0647abd517b2965666367a33817104d5ca8752f784c1bc8edcac1fa7faa8b44e603139f26095561140d8aede3b51c41d0b591
@@ -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.22".freeze
3
+ VERSION = "0.2.23".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.22
4
+ version: 0.2.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-23 00:00:00.000000000 Z
11
+ date: 2019-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: azure-armrest