vm_shepherd 3.4.0 → 3.4.1

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: c20a4fbcccc9a014091dfb3b562f1a7a229250a4
4
- data.tar.gz: 1474fc28386000077c69a829b3520d489c82186e
3
+ metadata.gz: a23f577f04435b804876aab8c9744e677e86599c
4
+ data.tar.gz: a258bb7fcdefc25139da31ea8ca7b8d058e9caf4
5
5
  SHA512:
6
- metadata.gz: 5d89cffd243b8fb4530b56dff8e6e8b77e46035ac429aa2ece3b271e1d7df5150647d1337481a7edd903ba8e33c9a277fbfcb7007821d7b6d44dd15a7b218bb7
7
- data.tar.gz: 0d5c833739ff2b3217739060375d09abe51b0f7199d7e1ea5c90ca10c0c20b6d573150f9ac376e88bc514615a5623d3599f4f4b49ad2b1d36f17db72a0d9ee31
6
+ metadata.gz: 17320e878ffc823710a9629856b939c95be5fa3bf95834f44f9576039147b9baf416a7548b8675d37797e0e5910d26fd5f87a8374b4ca68abd0f3ef63552167a
7
+ data.tar.gz: 82a5056e4c569d7a804c7c6885904399b6daab21ae360f754bb1e0938de4d98e86850bea00e198ef3e719c8400d4b52fd0550256a45125a7f3e95bea93873b5b
@@ -1,3 +1,3 @@
1
1
  module VmShepherd
2
- VERSION = '3.4.0'.freeze
2
+ VERSION = '3.4.1'.freeze
3
3
  end
@@ -266,7 +266,6 @@ module VmShepherd
266
266
  'gateway' => vm_config[:gateway],
267
267
  'DNS' => vm_config[:dns],
268
268
  'ntp_servers' => vm_config[:ntp_servers],
269
- 'custom_hostname' => vm_config[:custom_hostname],
270
269
  }
271
270
 
272
271
  vapp_property_specs = []
@@ -287,11 +286,21 @@ module VmShepherd
287
286
  vapp_property_specs << RbVmomi::VIM::VAppPropertySpec.new.tap do |spec|
288
287
  spec.operation = 'edit'
289
288
  spec.info = RbVmomi::VIM::VAppPropertyInfo.new.tap do |p|
290
- p.key = ip_configuration.length
289
+ p.key = 5 # this needs to be 5th to match the ovf template property order.
291
290
  p.label = 'admin_password'
292
291
  p.value = vm_config[:vm_password]
293
292
  end
294
293
  end
294
+
295
+ vapp_property_specs << RbVmomi::VIM::VAppPropertySpec.new.tap do |spec|
296
+ spec.operation = 'edit'
297
+ spec.info = RbVmomi::VIM::VAppPropertyInfo.new.tap do |p|
298
+ p.key = 6 # ditto. see above. it makes me sad, too.
299
+ p.label = 'custom_hostname'
300
+ p.value = vm_config[:custom_hostname]
301
+ end
302
+ end unless vm_config[:custom_hostname].nil?
303
+
295
304
  logger.info("END VAppPropertySpec creation vapp_property_specs=#{vapp_property_specs.inspect}")
296
305
  vapp_property_specs
297
306
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vm_shepherd
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 3.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ops Manager Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-01 00:00:00.000000000 Z
11
+ date: 2016-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-v1