morpheus-cli 3.3.1 → 3.3.1.2
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/apps.rb +4 -1
- data/lib/morpheus/cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e733c8e17b5f716f3ddbc77cfd4f4a4edcd4829
|
4
|
+
data.tar.gz: a84c8fe72b59941c634cb7fb9cd65d50f09baf77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ef7d578657dceaf7d2eb8ab41386af3d344e8df567f41d05034c8d44a7fef43271e3d7f95f691c2fe461098b17e6b63713df97cdd95f33783e35d564c542000
|
7
|
+
data.tar.gz: 16b13439ac6db6a6ea4267a8e09dbd53c2d10f6e3ce78e7c2b5a7a767a067aab06ed005cdffb67077ad78ac9c015848a40ce46378bb694a0baacfa9e4c693ad2
|
data/lib/morpheus/cli/apps.rb
CHANGED
@@ -157,6 +157,9 @@ class Morpheus::Cli::Apps
|
|
157
157
|
payload = {}
|
158
158
|
params = Morpheus::Cli::OptionTypes.prompt(add_app_option_types, options[:options], @api_client, options[:params])
|
159
159
|
params = params.deep_compact! # remove nulls and blank strings
|
160
|
+
if params['template']
|
161
|
+
params['id'] = params.delete('template')
|
162
|
+
end
|
160
163
|
group = find_group_by_name_or_id_for_provisioning(params.delete('group'))
|
161
164
|
return if group.nil?
|
162
165
|
payload.merge!(params)
|
@@ -188,7 +191,7 @@ class Morpheus::Cli::Apps
|
|
188
191
|
app = json_response["app"]
|
189
192
|
print_green_success "Added app #{app['name']}"
|
190
193
|
# add existing instances to blank app now?
|
191
|
-
if !options[:no_prompt] && !payload['tiers']
|
194
|
+
if !options[:no_prompt] && !payload['tiers'] && payload['id'] == 'existing'
|
192
195
|
if ::Morpheus::Cli::OptionTypes::confirm("Would you like to add an instance now?", options.merge({default: false}))
|
193
196
|
add_instance([app['id']])
|
194
197
|
while ::Morpheus::Cli::OptionTypes::confirm("Add another instance?", options.merge({default: false})) do
|
data/lib/morpheus/cli/version.rb
CHANGED