chef-provisioning-vsphere 0.5.4 → 0.5.5

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
  SHA1:
3
- metadata.gz: 056663797fc34f01df8e90f6f8a09215b52cbd02
4
- data.tar.gz: 846498ec8eaa5846614f7fd8feab39707ccfaccc
3
+ metadata.gz: 38197d9fdbf4f7455ac7f5dd5f474f2e2002c9b0
4
+ data.tar.gz: b696a61882e2257dbac71cf51cc5ab293b0b077a
5
5
  SHA512:
6
- metadata.gz: e7accde606905aa4bcf0273ee976f0f3c421a6479e9af6adf4558d26bac99ccdc87d759110b206aba7a8b1873e91d520d608c2e956a9fc740514fbcba0890939
7
- data.tar.gz: 88fd45b249a43a81d4397aab278954c83418c829121d262424601bbc6d158d98170ec975866e24974c272e140032d91ee057ecc44043f0e4e2fd88ea27fd27d3
6
+ metadata.gz: 49e7f606f483b5dc76903fc731ed219b33e47abe0d532565c4d4478e42124962b262bf01bbb7e3b183ae295107d0e93b027d1b039e99187519e34592b649bd51
7
+ data.tar.gz: bdb2a8cc40be87ddd07978cc329dea6bfce9e743d2d16541841fac62f2e79d8d8cec95088ac86c228fe0a3bc712e679a2bd95afc448afa8766ee858b7820c5e1
@@ -214,6 +214,7 @@ module ChefProvisioningVsphere
214
214
  )
215
215
 
216
216
  machine = machine_for(machine_spec,machine_options)
217
+
217
218
  setup_extra_nics(action_handler, bootstrap_options, vm, machine)
218
219
 
219
220
  if has_static_ip(bootstrap_options) && !is_windows?(vm)
@@ -224,6 +225,12 @@ module ChefProvisioningVsphere
224
225
  end
225
226
 
226
227
  def setup_extra_nics(action_handler, bootstrap_options, vm, machine)
228
+ networks=bootstrap_options[:network_name]
229
+ if networks.kind_of?(String)
230
+ networks=[networks]
231
+ end
232
+ return if networks.nil? || networks.count < 2
233
+
227
234
  new_nics = add_extra_nic(
228
235
  action_handler,
229
236
  vm_template_for(bootstrap_options),
@@ -1,3 +1,3 @@
1
1
  module ChefProvisioningVsphere
2
- VERSION = '0.5.4'
2
+ VERSION = '0.5.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-provisioning-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - CenturyLink Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-27 00:00:00.000000000 Z
11
+ date: 2015-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbvmomi