morpheus-cli 3.6.26 → 3.6.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/morpheus/cli/library_container_types_command.rb +14 -10
- data/lib/morpheus/cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a38a1d8f35d6f34c9ae28099a94112109d3619011a5ca043a4541ea7e88ec71
|
4
|
+
data.tar.gz: bd0722e0270152a3a5d4ff43255886475d3e71d89d3f35e66744637ed967be54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bd3fdcac5b11ded20eac054de1119ba279dd52a40808d90fbaf0cc026f4e7a9388549ba00515064cc231e41b00aa98af0ddb3db40d7c4cb47aed65d92ca70dc
|
7
|
+
data.tar.gz: 2a50b68e864e28e68351955828319d0fce28dc25647f0e0ca9aac65e66fe7275b03c72e1a51beb27b3f9134586990fe19a6bc28dfdc8efae9a0eb38d51bbf52a
|
@@ -334,16 +334,19 @@ class Morpheus::Cli::LibraryContainerTypesCommand
|
|
334
334
|
|
335
335
|
# prompt custom options for the selected provision type
|
336
336
|
provision_type_custom_option_types = provision_type['customOptionTypes']
|
337
|
+
provision_type_v_prompt = nil
|
337
338
|
if (!provision_type_custom_option_types || provision_type_custom_option_types.empty?)
|
338
|
-
print yellow,"Sorry, no options were found for provision type #{provision_type['name']}.","\n",reset
|
339
|
-
return 1
|
339
|
+
# print yellow,"Sorry, no options were found for provision type #{provision_type['name']}.","\n",reset
|
340
|
+
# return 1
|
341
|
+
else
|
342
|
+
|
343
|
+
field_group_name = provision_type_custom_option_types.first['fieldGroup'] || "#{provision_type['name']} Options"
|
344
|
+
field_group_name = "#{provision_type['name']} Options"
|
345
|
+
# print "\n"
|
346
|
+
puts field_group_name
|
347
|
+
puts "==============="
|
348
|
+
provision_type_v_prompt = Morpheus::Cli::OptionTypes.prompt(provision_type_custom_option_types,options[:options],@api_client, {provisionTypCode: params['provisionTypeCode']})
|
340
349
|
end
|
341
|
-
field_group_name = provision_type_custom_option_types.first['fieldGroup'] || "#{provision_type['name']} Options"
|
342
|
-
field_group_name = "#{provision_type['name']} Options"
|
343
|
-
# print "\n"
|
344
|
-
puts field_group_name
|
345
|
-
puts "==============="
|
346
|
-
provision_type_v_prompt = Morpheus::Cli::OptionTypes.prompt(provision_type_custom_option_types,options[:options],@api_client, {provisionTypCode: params['provisionTypeCode']})
|
347
350
|
|
348
351
|
# payload.deep_merge!(provision_type_v_prompt)
|
349
352
|
|
@@ -372,8 +375,9 @@ class Morpheus::Cli::LibraryContainerTypesCommand
|
|
372
375
|
# payload = {'containerType' => params}
|
373
376
|
payload['containerType'] ||= {}
|
374
377
|
payload['containerType'].deep_merge!(params)
|
375
|
-
|
376
|
-
|
378
|
+
if provision_type_v_prompt
|
379
|
+
payload.deep_merge!(provision_type_v_prompt)
|
380
|
+
end
|
377
381
|
|
378
382
|
end
|
379
383
|
@library_container_types_interface.setopts(options)
|
data/lib/morpheus/cli/version.rb
CHANGED
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: 3.6.
|
4
|
+
version: 3.6.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Estes
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2019-04-
|
14
|
+
date: 2019-04-10 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|