manageiq-smartstate 0.2.23 → 0.2.24

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: e8eef7c82120801ecfa16b92e487e837bebab649
4
- data.tar.gz: 2736b5d2d4f12b6089e32de36d071507696bd55a
3
+ metadata.gz: 88652f88b8c5d6a77b1954fadbe76dc2d489d79d
4
+ data.tar.gz: 8077e08ee5d0e4ef22347586ce6556c76e7f46f5
5
5
  SHA512:
6
- metadata.gz: 925dbb492e59ef0b02f39cfd58011a50fed100aa7549322acaecae9de5ce2815e471de6f3ec07c296a3f5fa833bbce94c006a565ad24f6e798765848380ec220
7
- data.tar.gz: 67cf93ff45b1d115859bf21cbbf0647abd517b2965666367a33817104d5ca8752f784c1bc8edcac1fa7faa8b44e603139f26095561140d8aede3b51c41d0b591
6
+ metadata.gz: 9275dbe27efff2e306632e60d025c1f7c520c0652480b7c110d30402993ae41b751ebc1cd2a5ec80f0cdbbcf57d5668b284572aab3e5f7f53aa48668ec1dc4eb
7
+ data.tar.gz: 16788607a86a04fe9c05d103ce49c7da0184de1ce951d076c486724b9b801d5c893028f67793161ff6b4291adb43fb6655da983844c456d7bd777669574066c7
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Smartstate
3
- VERSION = "0.2.23".freeze
3
+ VERSION = "0.2.24".freeze
4
4
  end
5
5
  end
@@ -515,7 +515,12 @@ class VmConfig
515
515
  next if d['capacityInKB'].nil?
516
516
  next if (filename = d.fetch_path('backing', 'fileName')).nil?
517
517
  disk = vim_disks[filename.to_s] = {}
518
- disk[:disk_type] = (d.fetch_path('backing', 'thinProvisioned') == 'true') ? 'thin' : 'thick'
518
+
519
+ # check if it's raw disk type, using same logic as in vmware refresher_parser.
520
+ mode = d.fetch_path('backing', 'compatibilityMode')
521
+ disk_type = "rdm-#{mode[0...-4]}" if mode
522
+
523
+ disk[:disk_type] = mode ? disk_type : ((d.fetch_path('backing', 'thinProvisioned') == 'true') ? 'thin' : 'thick')
519
524
  disk[:provision_size] = d['capacityInKB'].to_i * 1024
520
525
  disk[:display_name] = d.fetch_path('deviceInfo', 'label').to_s
521
526
  disk[:vim_index] = d['key'].to_i
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.23
4
+ version: 0.2.24
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-06-13 00:00:00.000000000 Z
11
+ date: 2019-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: azure-armrest