knife-vsphere 1.2.12 → 1.2.13

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
  SHA1:
3
- metadata.gz: 8c9f4f89524d9eb9369efb020a0973a599cb4f00
4
- data.tar.gz: 8eaafefad58bb40dc078adf77788bf0f4f890c08
3
+ metadata.gz: 92495960a0105c5c704b19d8a0a74c0c88632391
4
+ data.tar.gz: bb30bd0c5d075f7b122231366c14d0d51da72bd1
5
5
  SHA512:
6
- metadata.gz: e388e12fea69231ef285d14065784c4160c261b02764f97d24bd96c5637f5c5ba2fd6942b0db18892f3c9503b4593e409472c9859ab8ada4b0b8fa507fa9808b
7
- data.tar.gz: af9b568e85cfba7d464b140e4dee71e8810687d4bfcca966468171ebb375f959c4d8c77d416d2662af443bc6b4ef5a7adcad37b49be9a0fa257c686116014f9d
6
+ metadata.gz: a0bd94602e0ab3537796afe7b46bd7502e63b3b2e34d299136e95d11d79958e781afc8822bb03766915bef61d1016637d366f041edb269db0035f6dbc492d797
7
+ data.tar.gz: 964a90190d4d099458b929b5d69a00e82187d76b216a157a7393bea31ecc8f9d3d932fc58f2615eb060d05f0a7b93712bbbc67f9eba809e27347257199dc7701
@@ -549,7 +549,7 @@ class Chef::Knife::VsphereVmClone < Chef::Knife::BaseVsphereCommand
549
549
  abort('Must specify VLANs with --cvlan when specifying switch UUIDs with --sw-uuids')
550
550
  end
551
551
  swuuid_list = if get_config(:customization_sw_uuid) == 'auto'
552
- ['auto'] * get_config(customization_ips).split(',').length
552
+ ['auto'] * get_config(:customization_ips).split(',').length
553
553
  else
554
554
  get_config(:customization_sw_uuid).split(',').map { |swuuid| swuuid.gsub(/((\w+\s+){7})(\w+)\s+(.+)/, '\1\3-\4') }
555
555
  end
@@ -578,7 +578,7 @@ class Chef::Knife::VsphereVmClone < Chef::Knife::BaseVsphereCommand
578
578
  # not connected to a distibuted switch?
579
579
  card.backing = RbVmomi::VIM::VirtualEthernetCardNetworkBackingInfo(network: network, deviceName: network.name)
580
580
  end
581
- card.macAddress = mac_list[index] if mac_list[index] != 'auto'
581
+ card.macAddress = mac_list[index] if get_config(:customization_macs) && mac_list[index] != 'auto'
582
582
  dev_spec = RbVmomi::VIM.VirtualDeviceConfigSpec(device: card, operation: 'edit')
583
583
  clone_spec.config.deviceChange.push dev_spec
584
584
  end
@@ -1,3 +1,3 @@
1
1
  module KnifeVsphere
2
- VERSION = '1.2.12'
2
+ VERSION = '1.2.13'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.12
4
+ version: 1.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezra Pagel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-16 00:00:00.000000000 Z
11
+ date: 2016-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: filesize