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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b8c741a2147562961cf875fa8395b16323e9c5c
4
- data.tar.gz: 2ad98468d07e2981a0b5156c0ac21dce6669971d
3
+ metadata.gz: 1e733c8e17b5f716f3ddbc77cfd4f4a4edcd4829
4
+ data.tar.gz: a84c8fe72b59941c634cb7fb9cd65d50f09baf77
5
5
  SHA512:
6
- metadata.gz: 45bf78b5e848b756dc5ea5ff392b26dbaa89ae8c3b222c73c90c9619df47d916e9ed9b6d155fca5e79d4ec604c9f5f2d87607b7f40519b780b172db9abf8c55e
7
- data.tar.gz: c838e7043db30e90aaa9fe114ed22167b921ef2f618fce9d6c11bec4d8f260e92c457742942970779070126fd12d3c1d0b557b146893e2c52ea3dbb2df39c9f9
6
+ metadata.gz: 4ef7d578657dceaf7d2eb8ab41386af3d344e8df567f41d05034c8d44a7fef43271e3d7f95f691c2fe461098b17e6b63713df97cdd95f33783e35d564c542000
7
+ data.tar.gz: 16b13439ac6db6a6ea4267a8e09dbd53c2d10f6e3ce78e7c2b5a7a767a067aab06ed005cdffb67077ad78ac9c015848a40ce46378bb694a0baacfa9e4c693ad2
@@ -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
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Morpheus
3
3
  module Cli
4
- VERSION = "3.3.1"
4
+ VERSION = "3.3.1.2"
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.3.1
4
+ version: 3.3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Estes