kitchen-vcenter 2.8.2 → 2.8.6

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: 2d5417e5d754588145debfc8db0f0175534341c092657af6fb20a04ae9646595
4
- data.tar.gz: 437667ada8dd0e3c4ac060a8ce969c16628e0275c35f3c4fa19b3ce057756577
3
+ metadata.gz: 1da356cf16429bae878bc2a5672f2c574c9cd82028914f4aca53d1311955eb4c
4
+ data.tar.gz: ddf119be74e493604cef87b3cf3d45e2c486492a26eeac5fd5bb6c21ef58a38a
5
5
  SHA512:
6
- metadata.gz: 02d794cea042ee339e00bd767c435e4c5953c3bbddeffc2ed7770aa921c13c0c8de86b3d7ee27d401f492d3c0037f0daae461d34a0a500afa4ae5b1dec965031
7
- data.tar.gz: dee89ccfabedd365d9e6d6a230af353ac02bae25bb4480c4c58ef0b583b09d443b727db701b6f5a4cc8b56d193ed78989262fe79731b81b4ecf526b666a371cc
6
+ metadata.gz: '07824b2bb5850ba139bea24ea65082c602e6e56ea79903a3645ce90d64ff1614e35eeee52ce1dae68670d688be6c9aaec577eab283ac4efb5fcfc4d9da23af1b'
7
+ data.tar.gz: a3d4f536ad36b3bf666183a607f2ba06a8bbfe9806e2e1917db30b65ec900a808fd69977587df44622e71f9a9ebce3363581c9cc689992f0fa8aac815457f93d
@@ -20,5 +20,5 @@
20
20
  # The main kitchen-vcenter module
21
21
  module KitchenVcenter
22
22
  # The version of this version of test-kitchen we assume enterprises want.
23
- VERSION = "2.8.2"
23
+ VERSION = "2.8.6"
24
24
  end
@@ -425,7 +425,10 @@ class Support
425
425
  def find_datacenter
426
426
  vim.serviceInstance.find_datacenter(datacenter)
427
427
  rescue RbVmomi::Fault
428
- root_folder.childEntity.grep(RbVmomi::VIM::Datacenter).find { |x| x.name == datacenter }
428
+ dc = root_folder.findByInventoryPath(datacenter)
429
+ return dc if dc.is_a?(RbVmomi::VIM::Datacenter)
430
+
431
+ raise Support::CloneError.new("Unable to locate datacenter at '#{datacenter}'")
429
432
  end
430
433
 
431
434
  def ip?(string)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-vcenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.2
4
+ version: 2.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-28 00:00:00.000000000 Z
11
+ date: 2020-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbvmomi