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 +4 -4
- data/.travis.yml +0 -1
- data/CHANGELOG.md +10 -0
- data/fog-vsphere.gemspec +2 -2
- data/lib/fog/vsphere/requests/compute/create_vm.rb +3 -1
- data/lib/fog/vsphere/version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd4f4138d57f34a0056c435cd13706faef8ee1bd96586dd95125e69efebc9d7b
|
4
|
+
data.tar.gz: c796f399f334fb16cb44ac45ed64968addab2e2251be8904fede0296b9f12ea7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f607e5adef67cab0fdf620f7f5834552c8c82afec978ad48526ff069c2839bfeb69fd1d40c5d05bf2005843229493c210de6ca2fa05edd368465bbedbd9704a
|
7
|
+
data.tar.gz: ce43023fb1edee5be62a8d1f2a14033177c4f77b66f12fc7b94a40fd2329f9ce9c87400b97982869b14c002e9402f2450d073078914c520c09d11563d982d95c
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -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)
|
data/fog-vsphere.gemspec
CHANGED
@@ -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'
|
27
|
+
spec.add_development_dependency 'bundler'
|
28
28
|
spec.add_development_dependency 'pry', '~> 0.10'
|
29
|
-
spec.add_development_dependency 'rake', '
|
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
|
-
|
29
|
+
cluster.resourcePool
|
28
30
|
end
|
29
31
|
vmFolder = get_raw_vmfolder(attributes[:path], attributes[:datacenter])
|
30
32
|
host = if attributes.key?(:host)
|
data/lib/fog/vsphere/version.rb
CHANGED
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.
|
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-
|
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: '
|
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: '
|
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:
|
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:
|
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.
|
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.
|