vagrant-vsphere 0.8.1 → 0.8.2

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: 1c0af604e5112b1d81adfb81951b31f7b8d86c38
4
- data.tar.gz: 18bdee1bbb0c156a9037df3d825de122579ae57e
3
+ metadata.gz: c6a998abddfc897331166c554cdf8d183f7b029e
4
+ data.tar.gz: 09f61f95926013c19c700da9f8d3092c2ce4917b
5
5
  SHA512:
6
- metadata.gz: 87322aa635a132bd6689c056e26355200d756e4e4ab3a84e0cb970d28747c813a9ed00eb757cb88c0d0c4af3313b79c21c1499a502841bc5d0fbd9a653d72ffd
7
- data.tar.gz: 20b7ab964e5ecf4038f7bf8da89493d577ec8be76ebfb79b04c309c8dc55d4402a66226949a365364dfc4661b35702fb99dfa03550379c98b357f89826319a64
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
 
@@ -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 Error::VSphereError, :message => I18n.t('vsphere.errors.missing_template') if template.nil?
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 Error::VSphereError, :message => I18n.t('vsphere.errors.too_many_private_networks') if private_networks.length > customization_spec.nicSettingMap.length
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|
@@ -12,6 +12,8 @@ module VagrantPlugins
12
12
  begin
13
13
  env[:vSphere_connection].close
14
14
  @app.call env
15
+ rescue Errors::VSphereError => e
16
+ raise
15
17
  rescue Exception => e
16
18
  puts e
17
19
  #raise a properly namespaced error for Vagrant
@@ -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
@@ -28,6 +28,8 @@ module VagrantPlugins
28
28
  begin
29
29
  env[:ui].info I18n.t('vsphere.destroy_vm')
30
30
  vm.Destroy_Task.wait_for_completion
31
+ rescue Errors::VSphereError => e
32
+ raise
31
33
  rescue Exception => e
32
34
  raise Errors::VSphereError, :message => e.message
33
35
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module VSphere
3
- VERSION = '0.8.1'
3
+ VERSION = '0.8.2'
4
4
  end
5
5
  end
data/locales/en.yml CHANGED
@@ -5,7 +5,7 @@ en:
5
5
  vm_clone_success: |-
6
6
  New virtual machine successfully cloned and started
7
7
  destroy_vm: |-
8
- Calling vShpere Destroy
8
+ Calling vSphere Destroy
9
9
  power_off_vm: |-
10
10
  Calling vSphere PowerOff
11
11
  power_on_vm: |-
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.1
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-10 00:00:00.000000000 Z
11
+ date: 2014-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri