fog-vsphere 3.6.4 → 3.6.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: 9c93f8cb4c51466540d02751656c83de747661c1a733ca27ebbdffde89f5c0dc
4
- data.tar.gz: 54bc1daeb38c253cf87978cb6a51e5f7f8da70f84627b8e637da8af1e2dca3e7
3
+ metadata.gz: a169539c87e9059730923e051d3e08ef56a1d376d44a79cc95d13a8fe10756f2
4
+ data.tar.gz: bc058ee169f529dbd0d5ee6110fa1e08e2ee9d885f8e4b0ecf119af4a69fde94
5
5
  SHA512:
6
- metadata.gz: 06d063d385dd60f23e5e8dce2cc195722c6d2152ba6afe25cde593ebf954e102f2138e0ad3720c2a823c01dcea7b7d4a9ff488c266387a135c272381405addfa
7
- data.tar.gz: f0dbfd50e8887a2aeee725791b188748e4bd14416d82d5b8af53d16fe12ea5cbb52e2041c85fa6511e284ecd544ba41db92ab7beb8ca45b0286b5cffd2565cee
6
+ metadata.gz: ce176624f1d5e490a885548c6bea5b6e19badc4f23316edb499ff521ebc251bac6a281ffea719301b0af5139d01e639b10dbbae6fe0883f24b33522b29685110
7
+ data.tar.gz: 67aafb6d34c2764899b3ccb3b88bb17f5334094df9483e288d1970950a88f38aa152dc7926a0b1c04beb01337032cac520586b8788da7d36fd55288e82c7c542
@@ -125,8 +125,11 @@ module Fog
125
125
  def vm_path_name(attributes)
126
126
  return '' if get_storage_pod_from_volumes(attributes)
127
127
  datastore = attributes[:volumes].first.datastore unless attributes[:volumes].empty?
128
- datastore ||= 'datastore1'
129
- "[#{datastore}]"
128
+ if datastore
129
+ "[#{datastore}]"
130
+ else
131
+ raise ArgumentError, 'Please mention the storage pod or the datastore'
132
+ end
130
133
  end
131
134
 
132
135
  def device_change(attributes)
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Vsphere
3
- VERSION = '3.6.4'.freeze
3
+ VERSION = '3.6.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.6.4
4
+ version: 3.6.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: 2024-03-04 00:00:00.000000000 Z
11
+ date: 2024-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core