vmware_web_service 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c405553b39bdd48a0d1addb0ab9851436a201adc836a23829177e68cab8169c3
|
4
|
+
data.tar.gz: c70a6f7137570372d6b6b4e05fd0c8723fe2e3ab0980d8651a03a874e9b9c2cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b733b1e46bc3a003a111b33bd03b8e57be539f632f15eae1cb86f293c3ff4df065610db71c8498e46f9b33ca6f2e73b7676aae4a22921964e0f88feec7038b63
|
7
|
+
data.tar.gz: 86cdf766a022fd1bfe677e5b9c353b2df629fdccd7ee2d443c518393c7a5e66863e248cf1fcd91536d17b41417e2df0da519c5b20db43556792ef82a3dfe1c91
|
@@ -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
|
-
|
1141
|
+
@cacheLock.sync_lock(:EX) if (unlock = @cacheLock.sync_shared?)
|
1142
1142
|
|
1143
|
-
|
1143
|
+
ra = getMoPropMulti(inventoryHash_locked['Datacenter'], @propMap[:Datacenter][:props])
|
1144
1144
|
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
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
|
-
|
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|
|
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 }
|
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.
|
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-
|
11
|
+
date: 2020-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|