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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ac74bdb3ec6ec96f297eba0833d4da4d2bc8e331883a523e7bb723001d29bd3
4
- data.tar.gz: 67686ea02a9c555f40c3f79e989ba761d3f24fb4334e63b7e3759e253897e6cc
3
+ metadata.gz: 1a38a1d8f35d6f34c9ae28099a94112109d3619011a5ca043a4541ea7e88ec71
4
+ data.tar.gz: bd0722e0270152a3a5d4ff43255886475d3e71d89d3f35e66744637ed967be54
5
5
  SHA512:
6
- metadata.gz: 9413a5ba7b807aebbf688768a7c954642120948ce8b1f829e52a2a745bcad034eb7fac18ddcacb117f9b65bfbf0d90bc732068dbc862685e5a82f0333cb09889
7
- data.tar.gz: 637c5087973fadabe1d98c4f5835fb01c0c7a83ec11996273d785ebda04d54cd48e4780f6be1608f832f153d0bba0253fa4e0470d25d71cc4e8a49a5eb8dbfd6
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
- payload.deep_merge!(provision_type_v_prompt)
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)
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Morpheus
3
3
  module Cli
4
- VERSION = "3.6.26"
4
+ VERSION = "3.6.27"
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: 3.6.26
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-04 00:00:00.000000000 Z
14
+ date: 2019-04-10 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler