vagrant-vsphere 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/vSphere/action/clone.rb +4 -2
- data/lib/vSphere/action/close_vsphere.rb +2 -0
- data/lib/vSphere/action/connect_vsphere.rb +2 -0
- data/lib/vSphere/action/destroy.rb +2 -0
- data/lib/vSphere/version.rb +1 -1
- data/locales/en.yml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6a998abddfc897331166c554cdf8d183f7b029e
|
4
|
+
data.tar.gz: 09f61f95926013c19c700da9f8d3092c2ce4917b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94e891a7470aad8f85918786bd86309688fedbf31b8adce022d3b2092a9cd0f8fa6084bcd6edfa93ef70bb79fccc6ba2aaa857ebf2ca41f14f6c3687fad6350a
|
7
|
+
data.tar.gz: d5451cd10b3afeb95c30d3c697c9563b51a26667a8b8f2fc0d982ed6e356fcd7d6b1c4a4efe0538c0b1c0c1758fafbf8b74848ff5d04c17949fad1d1171a19e1
|
data/README.md
CHANGED
@@ -153,6 +153,12 @@ This is useful if running Vagrant from multiple directories or if multiple machi
|
|
153
153
|
* updates Gemfile to fall back to old version of vagrant for if ruby < 2.0.0 is available.
|
154
154
|
* 0.8.0
|
155
155
|
* Adds configuration for connecting via proxy server (tkak issue #40)
|
156
|
+
* 0.8.1
|
157
|
+
* Fixes [#47](https://github.com/nsidc/vagrant-vsphere/issues/47) via [olegz-alertlogic #52](https://github.com/nsidc/vagrant-vsphere/pull/52)
|
158
|
+
* 0.8.2
|
159
|
+
* fixes no error messages [#58 leth:no-error-message](https://github.com/nsidc/vagrant-vsphere/pull/58)
|
160
|
+
* fixes typo [#57 targetx007](https://github.com/nsidc/vagrant-vsphere/pull/57)
|
161
|
+
* fixes additional no error messages
|
156
162
|
|
157
163
|
|
158
164
|
|
data/lib/vSphere/action/clone.rb
CHANGED
@@ -22,7 +22,7 @@ module VagrantPlugins
|
|
22
22
|
dc = get_datacenter connection, machine
|
23
23
|
template = dc.find_vm config.template_name
|
24
24
|
|
25
|
-
raise
|
25
|
+
raise Errors::VSphereError, :'missing_template' if template.nil?
|
26
26
|
|
27
27
|
begin
|
28
28
|
location = get_location connection, machine, config, template
|
@@ -36,6 +36,8 @@ module VagrantPlugins
|
|
36
36
|
env[:ui].info " -- Name: #{name}"
|
37
37
|
|
38
38
|
new_vm = template.CloneVM_Task(:folder => template.parent, :name => name, :spec => spec).wait_for_completion
|
39
|
+
rescue Errors::VSphereError => e
|
40
|
+
raise
|
39
41
|
rescue Exception => e
|
40
42
|
puts e.message
|
41
43
|
raise Errors::VSphereError, :message => e.message
|
@@ -63,7 +65,7 @@ module VagrantPlugins
|
|
63
65
|
return customization_spec if private_networks.nil?
|
64
66
|
|
65
67
|
# make sure we have enough NIC settings to override with the private network settings
|
66
|
-
raise
|
68
|
+
raise Errors::VSphereError, :'too_many_private_networks' if private_networks.length > customization_spec.nicSettingMap.length
|
67
69
|
|
68
70
|
# assign the private network IP to the NIC
|
69
71
|
private_networks.each_index do |idx|
|
@@ -17,6 +17,8 @@ module VagrantPlugins
|
|
17
17
|
insecure: config.insecure, proxyHost: config.proxy_host,
|
18
18
|
proxyPort: config.proxy_port
|
19
19
|
@app.call env
|
20
|
+
rescue VSphere::Errors::VSphereError => e
|
21
|
+
raise
|
20
22
|
rescue Exception => e
|
21
23
|
puts e.backtrace
|
22
24
|
raise VagrantPlugins::VSphere::Errors::VSphereError, :message => e.message
|
data/lib/vSphere/version.rb
CHANGED
data/locales/en.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-vsphere
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Grauch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|