fog-vsphere 0.6.0 → 0.6.1

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
  SHA1:
3
- metadata.gz: 7a12e272a23029a875c210283a8eb747464ab79c
4
- data.tar.gz: aa09039e8d0942692daf330100baeb066e165a2a
3
+ metadata.gz: 02340f09b01f87560e57c8f47bfe08049343bd97
4
+ data.tar.gz: f9f5fae91d11275f8b3c3ae521e90396fff9f453
5
5
  SHA512:
6
- metadata.gz: 073803f1b3a086c7f807a5fe4744c703c22609e2788b007551871214e50aeb5afe40038f9921c45a14752ccb7622929533f4eb91e5c96f8a3aa6d4b3b9c0d0db
7
- data.tar.gz: dc797b1e4678a88293944451e1350466bd4a033c67230cd5980b160436dcfbdf8707966e801440bc861b9fde204a4c721f6de871863221cc7a1e472130058e77
6
+ metadata.gz: 06fe721f6ac5c8ecef80cca40cc39dbad8c90419cd431c455eeff6701eec1caae44a8833a56a2648c78fc1ff5625c50490e471dbdae0785a124e99fff89993f5
7
+ data.tar.gz: f157514b1f881cb9967b0dc05ca402e987a1bb6381c1bface61050428a85fae5ff575d1715452e39eb7184ee5b5cf6c19da918c6992b03ab1a8bb75406dad3b6
@@ -1,4 +1,8 @@
1
- # v0.6.0 1/28/2016
1
+ ## v0.6.1 3/4/2016
2
+
3
+ * Refactor storage pod handling
4
+
5
+ ## v0.6.0 1/28/2016
2
6
 
3
7
  * Improvements to upload_iso method
4
8
  * Minor refactoring of unnecessarily complex code
@@ -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
- raise Fog::Compute::Vsphere::NotFound, "Storage Pod #{options["storage_pod"]} Doesn't Exist!" if options.key?('storage_pod') and ! get_storage_pod(options['storage_pod'], options['datacenter'])
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']),
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Vsphere
3
- VERSION = '0.6.0'
3
+ VERSION = '0.6.1'
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: 0.6.0
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-01-28 00:00:00.000000000 Z
11
+ date: 2016-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core