fog-vsphere 3.2.2 → 3.2.5

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
  SHA256:
3
- metadata.gz: 78c397e17b42379d4faf61cf8a3febdf774389e2df303f3b0711199341d63e12
4
- data.tar.gz: 252c2e0e3edd5064b0bad1d658a37964c2a11c208ffdb27d9e6a4beadf6bd1be
3
+ metadata.gz: cd4f4138d57f34a0056c435cd13706faef8ee1bd96586dd95125e69efebc9d7b
4
+ data.tar.gz: c796f399f334fb16cb44ac45ed64968addab2e2251be8904fede0296b9f12ea7
5
5
  SHA512:
6
- metadata.gz: fc10dca7dd3e262a16ebf4c5e6df5f6863d0864579de95211ec5dbe291c91b970ba3ca9e00a92d1bc070daa5f1fc9facac542e03fc71ba0662f3a0acc3b96649
7
- data.tar.gz: 23bcdf44c1e119499a3c5b9da42c1d95fef56a60dbef878d70a79246319ba7b5e4f94cc63cfe6a2e67fbf154d356c1c7de945eaa9f22c716f53567df88c57564
6
+ metadata.gz: 9f607e5adef67cab0fdf620f7f5834552c8c82afec978ad48526ff069c2839bfeb69fd1d40c5d05bf2005843229493c210de6ca2fa05edd368465bbedbd9704a
7
+ data.tar.gz: ce43023fb1edee5be62a8d1f2a14033177c4f77b66f12fc7b94a40fd2329f9ce9c87400b97982869b14c002e9402f2450d073078914c520c09d11563d982d95c
@@ -1,6 +1,5 @@
1
1
  language: ruby
2
2
  sudo: false
3
- before_install: gem install bundler -v 1.17.3
4
3
  matrix:
5
4
  allow_failures:
6
5
  - rvm: jruby-head
@@ -1,3 +1,13 @@
1
+ ## v3.2.5
2
+ * Check cluster existance properly (#239)
3
+
4
+ ## ~~v3.2.3~~
5
+ * Check cluster existance (#239)
6
+
7
+ ## v3.2.2
8
+ * Load simple clusters (#237)
9
+ * ISO upload: correctly check if upload directory exists
10
+
1
11
  ## v3.2.1
2
12
 
3
13
  * Fix VM creation on storagePod (#234)
@@ -24,9 +24,9 @@ Gem::Specification.new do |spec|
24
24
  spec.add_runtime_dependency 'fog-core'
25
25
  spec.add_runtime_dependency 'rbvmomi', '>= 1.9', '< 3'
26
26
 
27
- spec.add_development_dependency 'bundler', '~> 1.10'
27
+ spec.add_development_dependency 'bundler'
28
28
  spec.add_development_dependency 'pry', '~> 0.10'
29
- spec.add_development_dependency 'rake', '~> 10.0'
29
+ spec.add_development_dependency 'rake', '>= 12.3.3'
30
30
  spec.add_development_dependency 'minitest', '~> 5.8'
31
31
  spec.add_development_dependency 'rubocop', '~> 0.50.0'
32
32
  spec.add_development_dependency 'mocha', '~> 1.8'
@@ -4,6 +4,8 @@ module Fog
4
4
  class Real
5
5
  def create_vm(attributes = {})
6
6
  # build up vm configuration
7
+ cluster = get_raw_cluster(attributes[:cluster], attributes[:datacenter])
8
+ raise Fog::Vsphere::Compute::NotFound, "Cluster #{attributes[:cluster]} Doesn't Exist in the DC!" unless cluster
7
9
 
8
10
  vm_cfg = {
9
11
  name: attributes[:name],
@@ -24,7 +26,7 @@ module Fog
24
26
  resource_pool = if attributes[:resource_pool] && attributes[:resource_pool] != 'Resources'
25
27
  get_raw_resource_pool(attributes[:resource_pool], attributes[:cluster], attributes[:datacenter])
26
28
  else
27
- get_raw_cluster(attributes[:cluster], attributes[:datacenter]).resourcePool
29
+ cluster.resourcePool
28
30
  end
29
31
  vmFolder = get_raw_vmfolder(attributes[:path], attributes[:datacenter])
30
32
  host = if attributes.key?(:host)
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Vsphere
3
- VERSION = '3.2.2'.freeze
3
+ VERSION = '3.2.5'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2
4
+ version: 3.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - J.R. Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-24 00:00:00.000000000 Z
11
+ date: 2020-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core
@@ -48,16 +48,16 @@ dependencies:
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '1.10'
53
+ version: '0'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - "~>"
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: '1.10'
60
+ version: '0'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: pry
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -76,16 +76,16 @@ dependencies:
76
76
  name: rake
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - "~>"
79
+ - - ">="
80
80
  - !ruby/object:Gem::Version
81
- version: '10.0'
81
+ version: 12.3.3
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - "~>"
86
+ - - ">="
87
87
  - !ruby/object:Gem::Version
88
- version: '10.0'
88
+ version: 12.3.3
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: minitest
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -335,7 +335,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
335
335
  - !ruby/object:Gem::Version
336
336
  version: '0'
337
337
  requirements: []
338
- rubygems_version: 3.0.6
338
+ rubygems_version: 3.0.3
339
339
  signing_key:
340
340
  specification_version: 4
341
341
  summary: Module for the 'fog' gem to support VMware vSphere.