fog-vsphere 0.6.0 → 0.6.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 +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/fog/vsphere/requests/compute/vm_clone.rb +4 -2
- data/lib/fog/vsphere/version.rb +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: 02340f09b01f87560e57c8f47bfe08049343bd97
|
|
4
|
+
data.tar.gz: f9f5fae91d11275f8b3c3ae521e90396fff9f453
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 06fe721f6ac5c8ecef80cca40cc39dbad8c90419cd431c455eeff6701eec1caae44a8833a56a2648c78fc1ff5625c50490e471dbdae0785a124e99fff89993f5
|
|
7
|
+
data.tar.gz: f157514b1f881cb9967b0dc05ca402e987a1bb6381c1bface61050428a85fae5ff575d1715452e39eb7184ee5b5cf6c19da918c6992b03ab1a8bb75406dad3b6
|
data/CHANGELOG.md
CHANGED
|
@@ -20,7 +20,9 @@ module Fog
|
|
|
20
20
|
end
|
|
21
21
|
raise Fog::Compute::Vsphere::NotFound, "Datacenter #{options["datacenter"]} Doesn't Exist!" unless get_datacenter(options["datacenter"])
|
|
22
22
|
raise Fog::Compute::Vsphere::NotFound, "Template #{options["template_path"]} Doesn't Exist!" unless get_virtual_machine(options["template_path"], options["datacenter"])
|
|
23
|
-
|
|
23
|
+
if options.key?('storage_pod') && !options['storage_pod'].nil? && !get_raw_storage_pod(options['storage_pod'], options['datacenter'])
|
|
24
|
+
raise Fog::Compute::Vsphere::NotFound, "Storage Pod #{options["storage_pod"]} Doesn't Exist!"
|
|
25
|
+
end
|
|
24
26
|
options
|
|
25
27
|
end
|
|
26
28
|
end
|
|
@@ -590,7 +592,7 @@ module Fog
|
|
|
590
592
|
|
|
591
593
|
# Perform the actual Clone Task
|
|
592
594
|
# Clone VM on a storage pod
|
|
593
|
-
if options.key?('storage_pod')
|
|
595
|
+
if options.key?('storage_pod') and !options['storage_pod'].nil?
|
|
594
596
|
raise ArgumentError, "need to use at least vsphere revision 5.0 or greater to use storage pods" unless @vsphere_rev.to_f >= 5
|
|
595
597
|
pod_spec = RbVmomi::VIM::StorageDrsPodSelectionSpec.new(
|
|
596
598
|
:storagePod => get_raw_storage_pod(options['storage_pod'], options['datacenter']),
|
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: 0.6.
|
|
4
|
+
version: 0.6.1
|
|
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: 2016-
|
|
11
|
+
date: 2016-03-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fog-core
|