vmware_web_service 1.0.6 → 1.0.7

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
  SHA256:
3
- metadata.gz: d0b00e667598e644b035f2c3241e0c77ac2238044060045255a21701346320b6
4
- data.tar.gz: 9d6b0cc3dbb8c4cb4cd2f5f54d48acb1b23d734b46e1ebce79e9945a954c9e35
3
+ metadata.gz: c405553b39bdd48a0d1addb0ab9851436a201adc836a23829177e68cab8169c3
4
+ data.tar.gz: c70a6f7137570372d6b6b4e05fd0c8723fe2e3ab0980d8651a03a874e9b9c2cf
5
5
  SHA512:
6
- metadata.gz: a62e1199199d1670c84485f0d304874838da6c7a292dfd17526c3a66e02e5ee746f0f2bc2db1b8caef326c211840b8d455d2149370cb170c0179778ac5705a35
7
- data.tar.gz: 36f481706737461eb2bd5125e5aeb7959517c947d54d01ecc5837fcacfc87a18cea4bca10a35c3027ecf40d520ffe0db312acb6fd4a31dd2e7849c669760b879
6
+ metadata.gz: b733b1e46bc3a003a111b33bd03b8e57be539f632f15eae1cb86f293c3ff4df065610db71c8498e46f9b33ca6f2e73b7676aae4a22921964e0f88feec7038b63
7
+ data.tar.gz: 86cdf766a022fd1bfe677e5b9c353b2df629fdccd7ee2d443c518393c7a5e66863e248cf1fcd91536d17b41417e2df0da519c5b20db43556792ef82a3dfe1c91
@@ -34,7 +34,7 @@ class MiqVimCustomizationSpecManager
34
34
  specs = info
35
35
  return [] if specs.nil?
36
36
 
37
- specs = specs.dup.to_miq_a
37
+ specs = Array.wrap(specs.dup)
38
38
  specs.each { |s| s['spec'] = getCustomizationSpec(s['name'].to_s).spec }
39
39
  specs
40
40
  end
@@ -1138,18 +1138,18 @@ class MiqVimInventory < MiqVimClientBase
1138
1138
 
1139
1139
  $vim_log.info "MiqVimInventory.datacenters_locked: loading Datacenter cache for #{@connId}"
1140
1140
  begin
1141
- @cacheLock.sync_lock(:EX) if (unlock = @cacheLock.sync_shared?)
1141
+ @cacheLock.sync_lock(:EX) if (unlock = @cacheLock.sync_shared?)
1142
1142
 
1143
- ra = getMoPropMulti(inventoryHash_locked['Datacenter'], @propMap[:Datacenter][:props])
1143
+ ra = getMoPropMulti(inventoryHash_locked['Datacenter'], @propMap[:Datacenter][:props])
1144
1144
 
1145
- @datacenters = {}
1146
- @datacentersByMor = {}
1147
- ra.each do |dcObj|
1148
- addObjHash(:Datacenter, dcObj)
1145
+ @datacenters = {}
1146
+ @datacentersByMor = {}
1147
+ ra.each do |dcObj|
1148
+ addObjHash(:Datacenter, dcObj)
1149
+ end
1150
+ ensure
1151
+ @cacheLock.sync_unlock if unlock
1149
1152
  end
1150
- ensure
1151
- @cacheLock.sync_unlock if unlock
1152
- end
1153
1153
  $vim_log.info "MiqVimInventory.datacenters_locked: loaded Datacenter cache for #{@connId}"
1154
1154
 
1155
1155
  @datacenters
@@ -909,13 +909,14 @@ class MiqVimVm
909
909
  scsi_controllers.sort_by { |s| s["key"].to_i }.each do |scsi_controller|
910
910
  # Skip if all controller units are populated
911
911
  # Bus has 16 units, controller takes up 1 unit itself
912
- next if scsi_controller["device"].to_miq_a.count >= MAX_SCSI_DEVICES
912
+ device = Array.wrap(scsi_controller["device"])
913
+ next if device.count >= MAX_SCSI_DEVICES
913
914
 
914
915
  # We've found the lowest scsi controller with an available unit
915
916
  controller_key = scsi_controller["key"]
916
917
 
917
918
  # Get a list of disks on this controller
918
- disks = devices.select { |dev| scsi_controller["device"].to_miq_a.include?(dev["key"]) }
919
+ disks = devices.select { |dev| device.include?(dev["key"]) }
919
920
 
920
921
  # Get a list of all populated units on the controller
921
922
  populated_units = disks.collect { |disk| disk["unitNumber"].to_i }
@@ -1,3 +1,3 @@
1
1
  module VMwareWebService
2
- VERSION = '1.0.6'.freeze
2
+ VERSION = '1.0.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmware_web_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-14 00:00:00.000000000 Z
11
+ date: 2020-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport