morpheus-cli 2.9.3 → 2.9.3.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: dec4e335f8dbe9738af2c44aa04ccac1a5198a6b
4
- data.tar.gz: be24bb1560580e737e0c578fb2473281ed5b264b
3
+ metadata.gz: 59ad606bfeda37fd17e920c117fb7c137b9a5311
4
+ data.tar.gz: 53134a57f0230f128375239d942bfcdd5ebc0191
5
5
  SHA512:
6
- metadata.gz: 1fe7f96629f0c9556777f7e74ac8f17dc34f5a500cd8b152813e6314b10de5a8ee0f76245b4a1a0688c5b02cdd211b182dbce91ddbd1517fd0a2df2ae9e5dafe
7
- data.tar.gz: f72692a39db7fb5b37a09a9921821fabb8e78b5c3e6dae9ca2348b01b7d53e80ac0a4958a72d939744b26e50b48fd8a721b39107dbe5a60f40154e2dd0ca8e86
6
+ metadata.gz: 57818d33486bcfe687f44428fc395c6b2c8258e2bd4a1727ef35fad6d5e3aa206e602829c9b0f9668638892ebfe2154ed9232cb7ca2dc1c9d6ef4fdf8334404c
7
+ data.tar.gz: 279d0d6179234c85b176678a7a5e2de383b127c4ec1bc9e16800dbf8010ee9aa66fb3ddbffba2030a78b9ab0b1ce3c2191642ce6b3c2d2f26c87df4cdb04b53e
@@ -24,14 +24,18 @@ module Morpheus::Cli::ProvisioningHelper
24
24
  root_storage_types = []
25
25
  if plan_info['rootStorageTypes']
26
26
  plan_info['rootStorageTypes'].each do |opt|
27
- root_storage_types << {'name' => opt['name'], 'value' => opt['id']}
27
+ if !opt.nil?
28
+ root_storage_types << {'name' => opt['name'], 'value' => opt['id']}
29
+ end
28
30
  end
29
31
  end
30
32
 
31
33
  storage_types = []
32
34
  if plan_info['storageTypes']
33
35
  plan_info['storageTypes'].each do |opt|
34
- storage_types << {'name' => opt['name'], 'value' => opt['id']}
36
+ if !opt.nil?
37
+ storage_types << {'name' => opt['name'], 'value' => opt['id']}
38
+ end
35
39
  end
36
40
  end
37
41
 
@@ -39,14 +43,18 @@ module Morpheus::Cli::ProvisioningHelper
39
43
  if plan_info['supportsAutoDatastore']
40
44
  if plan_info['autoOptions']
41
45
  plan_info['autoOptions'].each do |opt|
42
- datastore_options << {'name' => opt['name'], 'value' => opt['id']}
46
+ if !opt.nil?
47
+ datastore_options << {'name' => opt['name'], 'value' => opt['id']}
48
+ end
43
49
  end
44
50
  end
45
51
  end
46
52
  if plan_info['datastores']
47
53
  plan_info['datastores'].each do |k, v|
48
54
  v.each do |opt|
49
- datastore_options << {'name' => "#{k}: #{opt['name']}", 'value' => opt['id']}
55
+ if !opt.nil?
56
+ datastore_options << {'name' => "#{k}: #{opt['name']}", 'value' => opt['id']}
57
+ end
50
58
  end
51
59
  end
52
60
  end
@@ -69,7 +77,9 @@ module Morpheus::Cli::ProvisioningHelper
69
77
  root_custom_size_options = []
70
78
  if plan_info['rootCustomSizeOptions'] && plan_info['rootCustomSizeOptions'][storage_type_id.to_s]
71
79
  plan_info['rootCustomSizeOptions'][storage_type_id.to_s].each do |opt|
72
- root_custom_size_options << {'name' => opt['value'], 'value' => opt['key']}
80
+ if !opt.nil?
81
+ root_custom_size_options << {'name' => opt['value'], 'value' => opt['key']}
82
+ end
73
83
  end
74
84
  end
75
85
 
@@ -131,7 +141,9 @@ module Morpheus::Cli::ProvisioningHelper
131
141
  custom_size_options = []
132
142
  if plan_info['customSizeOptions'] && plan_info['customSizeOptions'][storage_type_id.to_s]
133
143
  plan_info['customSizeOptions'][storage_type_id.to_s].each do |opt|
134
- custom_size_options << {'name' => opt['value'], 'value' => opt['key']}
144
+ if !opt.nil?
145
+ custom_size_options << {'name' => opt['value'], 'value' => opt['key']}
146
+ end
135
147
  end
136
148
  end
137
149
 
@@ -207,14 +219,18 @@ module Morpheus::Cli::ProvisioningHelper
207
219
  root_storage_types = []
208
220
  if plan_info['rootStorageTypes']
209
221
  plan_info['rootStorageTypes'].each do |opt|
210
- root_storage_types << {'name' => opt['name'], 'value' => opt['id']}
222
+ if !opt.nil?
223
+ root_storage_types << {'name' => opt['name'], 'value' => opt['id']}
224
+ end
211
225
  end
212
226
  end
213
227
 
214
228
  storage_types = []
215
229
  if plan_info['storageTypes']
216
230
  plan_info['storageTypes'].each do |opt|
217
- storage_types << {'name' => opt['name'], 'value' => opt['id']}
231
+ if !opt.nil?
232
+ storage_types << {'name' => opt['name'], 'value' => opt['id']}
233
+ end
218
234
  end
219
235
  end
220
236
 
@@ -222,14 +238,18 @@ module Morpheus::Cli::ProvisioningHelper
222
238
  if plan_info['supportsAutoDatastore']
223
239
  if plan_info['autoOptions']
224
240
  plan_info['autoOptions'].each do |opt|
225
- datastore_options << {'name' => opt['name'], 'value' => opt['id']}
241
+ if !opt.nil?
242
+ datastore_options << {'name' => opt['name'], 'value' => opt['id']}
243
+ end
226
244
  end
227
245
  end
228
246
  end
229
247
  if plan_info['datastores']
230
248
  plan_info['datastores'].each do |k, v|
231
249
  v.each do |opt|
232
- datastore_options << {'name' => "#{k}: #{opt['name']}", 'value' => opt['id']}
250
+ if !opt.nil?
251
+ datastore_options << {'name' => "#{k}: #{opt['name']}", 'value' => opt['id']}
252
+ end
233
253
  end
234
254
  end
235
255
  end
@@ -253,7 +273,9 @@ module Morpheus::Cli::ProvisioningHelper
253
273
  root_custom_size_options = []
254
274
  if plan_info['rootCustomSizeOptions'] && plan_info['rootCustomSizeOptions'][storage_type_id.to_s]
255
275
  plan_info['rootCustomSizeOptions'][storage_type_id.to_s].each do |opt|
256
- root_custom_size_options << {'name' => opt['value'], 'value' => opt['key']}
276
+ if !opt.nil?
277
+ root_custom_size_options << {'name' => opt['value'], 'value' => opt['key']}
278
+ end
257
279
  end
258
280
  end
259
281
 
@@ -334,7 +356,9 @@ module Morpheus::Cli::ProvisioningHelper
334
356
  custom_size_options = []
335
357
  if plan_info['customSizeOptions'] && plan_info['customSizeOptions'][storage_type_id.to_s]
336
358
  plan_info['customSizeOptions'][storage_type_id.to_s].each do |opt|
337
- custom_size_options << {'name' => opt['value'], 'value' => opt['key']}
359
+ if !opt.nil?
360
+ custom_size_options << {'name' => opt['value'], 'value' => opt['key']}
361
+ end
338
362
  end
339
363
  end
340
364
 
@@ -401,7 +425,9 @@ module Morpheus::Cli::ProvisioningHelper
401
425
  custom_size_options = []
402
426
  if plan_info['customSizeOptions'] && plan_info['customSizeOptions'][storage_type_id.to_s]
403
427
  plan_info['customSizeOptions'][storage_type_id.to_s].each do |opt|
404
- custom_size_options << {'name' => opt['value'], 'value' => opt['key']}
428
+ if !opt.nil?
429
+ custom_size_options << {'name' => opt['value'], 'value' => opt['key']}
430
+ end
405
431
  end
406
432
  end
407
433
 
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Morpheus
3
3
  module Cli
4
- VERSION = "2.9.3"
4
+ VERSION = "2.9.3.1"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morpheus-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.3
4
+ version: 2.9.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Estes
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-01-20 00:00:00.000000000 Z
13
+ date: 2017-01-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler