knife-vcenter 5.0.4 → 5.0.5

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: 91b375938f8ae0e31eac6f790c72feff030aadb1ade8a177831211133b24fc13
4
- data.tar.gz: 5779d08b95d8f385819db85b7249af9d097b2f2d3e7d8e0d380b2d8ff26f9bc5
3
+ metadata.gz: ff2523f169506ffe2b9099c744fca7d6cb17f78b1491e9d358144e1d241428c8
4
+ data.tar.gz: 2aba720664dca48806e9e2abe92def20aac39ed8b4a09cb8be8f3bbffbb20f9b
5
5
  SHA512:
6
- metadata.gz: 8b6df87f640d2265b9d974a2f97d055b7694ff7006080c7a7cb573e76e2257b651ea0719fd3918982cf17a96d80814596e9285769f3a5da8eb993db611ff16ac
7
- data.tar.gz: 7a103af62e7a079ca6ac62a63e3ed2ecbd91808c5e6678c18d04b152f2488de7043f0b9b66a3bcd73ba395dd47b5069429160fbce10d773068adecd303c5ba0c
6
+ metadata.gz: 3182c42e1cf563cc4141087657deaf5abac56f3065dfcc92ede22e5e3e263d29cc6583a4d82e8407bbdbdf285aec024b57c3c377ebcab0a73bb9104ae6422ea4
7
+ data.tar.gz: 72750e64d6e5de6adab941cd8865f18ddff8ae4b88e269ab2f6a27aa91b5f0bbe8e0aae1551461e8c36ff6d29bb7cbd4335ad42d90013d63f2d2e3e139be2bbb
@@ -22,12 +22,12 @@ require "chef/knife/cloud/service"
22
22
  require "chef/knife/cloud/helpers"
23
23
  require_relative "vcenter_service_helpers"
24
24
  require_relative "../../../support/clone_vm"
25
- require "uri"
26
- require "json"
27
- require "ostruct"
25
+ require "uri" unless defined?(URI)
26
+ require "json" unless defined?(JSON)
27
+ require "ostruct" unless defined?(OpenStruct)
28
28
  require "vsphere-automation-cis"
29
29
  require "vsphere-automation-vcenter"
30
- require "set"
30
+ require "set" unless defined?(Set)
31
31
 
32
32
  class Chef
33
33
  # The main knife class
@@ -219,11 +219,11 @@ class Chef
219
219
  rp_api = VSphereAutomation::VCenter::ResourcePoolApi.new(api_client)
220
220
 
221
221
  if name.nil?
222
- # Remove default pool for first pass (<= 1.2.1 behaviour to pick first user-defined pool found)
222
+ # Remove default pool for first pass (<= 1.2.1 behavior to pick first user-defined pool found)
223
223
  resource_pools = rp_api.list.value.delete_if { |pool| pool.name == "Resources" }
224
224
  puts "Search of all resource pools found: " + resource_pools.map(&:name).to_s
225
225
 
226
- # Revert to default pool, if no user-defined pool found (> 1.2.1 behaviour)
226
+ # Revert to default pool, if no user-defined pool found (> 1.2.1 behavior)
227
227
  # (This one might not be found under some circumstances by the statement above)
228
228
  return get_resource_pool("Resources") if resource_pools.empty?
229
229
  else
@@ -20,5 +20,5 @@
20
20
  # Provisions machines in vCenter
21
21
  module KnifeVcenter
22
22
  # The version of this amazing Gem, you should <3 it.
23
- VERSION = "5.0.4"
23
+ VERSION = "5.0.5"
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-vcenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.4
4
+ version: 5.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Partner Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-31 00:00:00.000000000 Z
11
+ date: 2020-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef