rbvmomi 1.11.0 → 1.11.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: 0ca855eb3fa447acc840c1079e5e85068482cfe1
4
- data.tar.gz: 032e7e726efcd4ecf9a5fa2e2214a857da4e0983
3
+ metadata.gz: 9f0f66fdcf3334ebe5cba85d508ee98c57ab0272
4
+ data.tar.gz: 77ee93d4385549f23c48bc8ce8b16ee09438fbd2
5
5
  SHA512:
6
- metadata.gz: afe2cff3f7d74de1020758f16d41603e674b0efe7cd8949b13d11ae28bd4918e810ac3b8126a0d3bdd50ca487bb2d8bc3306de1c1e926ae593f831d98d5c5f14
7
- data.tar.gz: 18b0195220d18e5e6b26928c2de27a3528262eceeb090f30d53291da432e10a19abea4b493dc5117d66eaaa6ae83bc660b0851eb78373fcdd9c1f5d8309a56ed
6
+ metadata.gz: 5d346a942e12eb1e2b670d72d589bcbd41f58f0344c9b37aff7b833ee7e7275541721ea1fa22ce4a9ae05a9c25ee5fa1ce2aa1f6ecba6f70903b2b34339adc17
7
+ data.tar.gz: 688d2c4f43832cea83a229bdb0d3382b5c0a4e0cc3150c411a5e836ebb320dca3b35626ac865c065969f49de5c89bffd86b504de2d953070589f4e96be88baf2
data/CONTRIBUTORS.md CHANGED
@@ -13,6 +13,7 @@
13
13
  * Erik Peterson <erik@subwindow.com>
14
14
  * Fabio Rapposelli <fabio@rapposelli.org>
15
15
  * Giuliano <giuliano@108.bz>
16
+ * Guido Günther <agx@sigxcpu.org>
16
17
  * Hari Krishnamurthy <hkrishna@vmware.com>
17
18
  * J.R. Garcia <jr@garciaole.com>
18
19
  * Jacob Evans <jacob@dekz.net>
@@ -81,18 +81,17 @@ class CachedOvfDeployer
81
81
  # it to be marked as a template. This way, the cost of uploading and keeping
82
82
  # the full size of the VM is only paid once.
83
83
  # @param ovf_url [String] URL to the OVF to be deployed. Currently only http
84
- # and https are supported
84
+ # and https are supported.
85
85
  # @param template_name [String] Name of the template to be used. Should be the
86
- # same name for the same URL. A cluster specific
87
- # post-fix will automatically be added.
88
- # @option opts [int] :run_without_interruptions Whether or not to disable
89
- # SIGINT and SIGTERM during
90
- # the OVF upload.
86
+ # same name for the same URL. A cluster specific post-fix will automatically
87
+ # be added.
88
+ # @option opts [int] :run_without_interruptions Whether or not to disable
89
+ # SIGINT and SIGTERM during the OVF upload.
91
90
  # @option opts [Hash] :config VM Config delta to apply after the OVF deploy is
92
- # done. Allows the template to be customized, e.g.
93
- # to set annotations.
91
+ # done. Allows the template to be customized, e.g. to set annotations.
92
+ # @option opts [Boolean] :no_delta Whether or not to add a delta disk layer.
94
93
  # @return [VIM::VirtualMachine] The template as a VIM::VirtualMachine instance
95
- def upload_ovf_as_template ovf_url, template_name, opts = {}
94
+ def upload_ovf_as_template(ovf_url, template_name, opts = {})
96
95
  # Optimization: If there happens to be a fully prepared template, then
97
96
  # there is no need to do the complicated OVF upload dance
98
97
  template = lookup_template template_name
@@ -188,10 +187,12 @@ class CachedOvfDeployer
188
187
  # prepare it for (linked) cloning and mark it as a template to signal
189
188
  # we are done.
190
189
  if !wait_for_template
191
- config = opts[:config] || {}
192
- config = vm.update_spec_add_delta_disk_layer_on_all_disks(config)
193
- # XXX: Should we add a version that does retries?
194
- vm.ReconfigVM_Task(:spec => config).wait_for_completion
190
+ if opts[:no_delta] != true
191
+ config = opts[:config] || {}
192
+ config = vm.update_spec_add_delta_disk_layer_on_all_disks(config)
193
+ # XXX: Should we add a version that does retries?
194
+ vm.ReconfigVM_Task(:spec => config).wait_for_completion
195
+ end
195
196
  vm.MarkAsTemplate
196
197
  end
197
198
  end
@@ -2,5 +2,5 @@
2
2
  # SPDX-License-Identifier: MIT
3
3
 
4
4
  module RbVmomi
5
- VERSION = '1.11.0'.freeze
5
+ VERSION = '1.11.1'.freeze
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbvmomi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rich Lane
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-04-05 00:00:00.000000000 Z
12
+ date: 2017-04-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: builder