kitchen-vcenter 2.6.2 → 2.6.4
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 +4 -4
- data/lib/kitchen-vcenter/version.rb +1 -1
- data/lib/support/clone_vm.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 48a7b054f396b0a0074fb6c20096ace9db63ed41ef81468a38eff3a106419d3f
|
|
4
|
+
data.tar.gz: 6a2c17827fab3cfca5680b9358a42878e47162b9809139adf87ab990db516461
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d6fd6e15dd7e011b029cb2d3f470777a44eee7f1bbd207c3748e61899e18caabcfa3d037e5cc7f1f88d87791f7bac9d5e238407615d7673629c9a10e356ca4b7
|
|
7
|
+
data.tar.gz: 2677d2b44e2856f75f560ae3b78d7e6a3a656477f1686e5747e7f350c56094acd7dec0a9e93480aaf75896a5ecb890466ab47e66ffb9a0c20909b1ea0198a598
|
data/lib/support/clone_vm.rb
CHANGED
|
@@ -251,6 +251,8 @@ class Support
|
|
|
251
251
|
# "wmic nicconfig get IPAddress",
|
|
252
252
|
# "netsh interface ip show ipaddress #{options[:vm_win_network]}"
|
|
253
253
|
end
|
|
254
|
+
else
|
|
255
|
+
return options[:active_discovery_command]
|
|
254
256
|
end
|
|
255
257
|
end
|
|
256
258
|
|
|
@@ -432,7 +434,7 @@ class Support
|
|
|
432
434
|
# Change network, if wanted
|
|
433
435
|
unless options[:network_name].nil?
|
|
434
436
|
networks = dc.network.select { |n| n.name == options[:network_name] }
|
|
435
|
-
raise Support::CloneError.new(format("Could not find network named %s",
|
|
437
|
+
raise Support::CloneError.new(format("Could not find network named %s", options[:network_name])) if networks.empty?
|
|
436
438
|
|
|
437
439
|
Kitchen.logger.warn format("Found %d networks named %s, picking first one", networks.count, options[:network_name]) if networks.count > 1
|
|
438
440
|
network_obj = networks.first
|
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.6.
|
|
4
|
+
version: 2.6.4
|
|
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-02-
|
|
11
|
+
date: 2020-02-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rbvmomi
|