morpheus-cli 3.6.25 → 3.6.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/morpheus/cli/mixins/provisioning_helper.rb +8 -5
- data/lib/morpheus/cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2ac74bdb3ec6ec96f297eba0833d4da4d2bc8e331883a523e7bb723001d29bd3
|
|
4
|
+
data.tar.gz: 67686ea02a9c555f40c3f79e989ba761d3f24fb4334e63b7e3759e253897e6cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9413a5ba7b807aebbf688768a7c954642120948ce8b1f829e52a2a745bcad034eb7fac18ddcacb117f9b65bfbf0d90bc732068dbc862685e5a82f0333cb09889
|
|
7
|
+
data.tar.gz: 637c5087973fadabe1d98c4f5835fb01c0c7a83ec11996273d785ebda04d54cd48e4780f6be1608f832f153d0bba0253fa4e0470d25d71cc4e8a49a5eb8dbfd6
|
|
@@ -334,11 +334,14 @@ module Morpheus::Cli::ProvisioningHelper
|
|
|
334
334
|
end
|
|
335
335
|
|
|
336
336
|
# do not require version if a layout is passed
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
337
|
+
version_value = default_version_value
|
|
338
|
+
version_is_required = default_layout_value.nil?
|
|
339
|
+
if default_layout_value.nil? && options[:options]["layout"].nil? && options[:always_prompt] != true
|
|
340
|
+
#version_prompt = Morpheus::Cli::OptionTypes.prompt([{'fieldName' => 'version', 'type' => 'select', 'fieldLabel' => 'Version', 'optionSource' => 'instanceVersions', 'required' => true, 'skipSingleOption' => true, 'autoPickOption' => true, 'description' => 'Select which version of the instance type to be provisioned.', 'defaultValue' => default_version_value}],options[:options],api_client,{groupId: group_id, cloudId: cloud_id, instanceTypeId: instance_type['id']})
|
|
341
|
+
version_prompt = Morpheus::Cli::OptionTypes.prompt([{'fieldName' => 'version', 'type' => 'select', 'fieldLabel' => 'Version', 'selectOptions' => available_versions, 'required' => version_is_required, 'skipSingleOption' => true, 'autoPickOption' => true, 'description' => 'Select which version of the instance type to be provisioned.', 'defaultValue' => default_version_value}],options[:options],api_client,{groupId: group_id, cloudId: cloud_id, instanceTypeId: instance_type['id']})
|
|
342
|
+
version_value = version_prompt['version']
|
|
343
|
+
end
|
|
344
|
+
layout_prompt = Morpheus::Cli::OptionTypes.prompt([{'fieldName' => 'layout', 'type' => 'select', 'fieldLabel' => 'Layout', 'optionSource' => 'layoutsForCloud', 'required' => true, 'description' => 'Select which configuration of the instance type to be provisioned.', 'defaultValue' => default_layout_value}],options[:options],api_client,{groupId: group_id, cloudId: cloud_id, instanceTypeId: instance_type['id'], version: version_value})
|
|
342
345
|
layout_id = layout_prompt['layout']
|
|
343
346
|
layout = instance_type['instanceTypeLayouts'].find{ |lt| lt['id'] == layout_id.to_i}
|
|
344
347
|
if !layout
|
data/lib/morpheus/cli/version.rb
CHANGED