morpheus-cli 2.11.3.1 → 2.11.3.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 836015cb51a22a6a3da1217038e96675f6876044
4
- data.tar.gz: b33d6a043d810fcd2a3bfaefaaf671eeee21cf96
3
+ metadata.gz: 6e3f427d3041554bf62a805b36b293a058b8a89b
4
+ data.tar.gz: 4a1c1fb29ebd0f247751cf8d8a92c338c917353b
5
5
  SHA512:
6
- metadata.gz: 2b9343e8835af95275215825186ad1162ffcb83288a39df86f5bdf5a21b145e4ba018f69d194b389f9a983d592e7ee5854b00ff93b3fd9c50f8d8666682c13c7
7
- data.tar.gz: d8b85d7f7daece9b2e113bdf7fcad9cfeaaf0541a5a64e39cf3950a2ff503e47bfc1147be7dbad53154c5b486217d6c0792b276006a5795febb59d49d997fd50
6
+ metadata.gz: db2d64120026284e5cc0540aaa82481da3065de12052dd9a82e578af45957bd3987c2bb8afd91e191ed9e771a5f2b4d19c91351b8bd5e130738865aeaeb095fa
7
+ data.tar.gz: f62bb9929eff3405742a500af3270d24f8a315d66136ccf8cf736f6f349a34334d86b436b1cc545cb378e770e69fe241c8befb5cdf774d55b9fc431b73a82506
@@ -633,6 +633,8 @@ class Morpheus::Cli::Clouds
633
633
  out << "#{white}UNKNOWN#{return_color}"
634
634
  elsif status_string == 'ok'
635
635
  out << "#{green}#{status_string.upcase}#{return_color}"
636
+ elsif status_string == 'syncing'
637
+ out << "#{yellow}#{status_string.upcase}#{return_color}"
636
638
  else
637
639
  out << "#{red}#{status_string ? status_string.upcase : 'N/A'}#{cloud['statusMessage'] ? "#{return_color} - #{cloud['statusMessage']}" : ''}#{return_color}"
638
640
  end
@@ -878,16 +878,22 @@ module Morpheus::Cli::ProvisioningHelper
878
878
  end
879
879
 
880
880
  # choose IP unless network has a pool configured
881
+ ip_required = true
881
882
  if selected_network['id'].to_s.include?('networkGroup')
882
- puts "IP Address: Using network group." if !no_prompt
883
+ #puts "IP Address: Using network group." if !no_prompt
884
+ ip_required = false
883
885
  elsif selected_network['pool']
884
- puts "IP Address: Using pool '#{selected_network['pool']['name']}'" if !no_prompt
886
+ #puts "IP Address: Using pool '#{selected_network['pool']['name']}'" if !no_prompt
887
+ ip_required = false
885
888
  elsif selected_network['dhcpServer']
886
- puts "IP Address: Using DHCP" if !no_prompt
887
- else
888
- v_prompt = Morpheus::Cli::OptionTypes.prompt([{'fieldContext' => field_context, 'fieldName' => 'ipAddress', 'type' => 'text', 'fieldLabel' => "IP Address", 'required' => true, 'description' => 'Enter an IP for this network interface. x.x.x.x', 'defaultValue' => network_interface['ipAddress']}], options[:options])
889
+ #puts "IP Address: Using DHCP" if !no_prompt
890
+ ip_required = false
891
+ end
892
+ v_prompt = Morpheus::Cli::OptionTypes.prompt([{'fieldContext' => field_context, 'fieldName' => 'ipAddress', 'type' => 'text', 'fieldLabel' => "IP Address", 'required' => ip_required, 'description' => 'Enter an IP for this network interface. x.x.x.x', 'defaultValue' => network_interface['ipAddress']}], options[:options])
893
+ if v_prompt[field_context] && !v_prompt[field_context]['ipAddress'].to_s.empty?
889
894
  network_interface['ipAddress'] = v_prompt[field_context]['ipAddress']
890
895
  end
896
+
891
897
  network_interfaces << network_interface
892
898
  interface_index += 1
893
899
  has_another_interface = options[:options] && options[:options]["networkInterface#{interface_index}"]
@@ -683,6 +683,10 @@ EOT
683
683
  optparse = Morpheus::Cli::OptionParser.new do|opts|
684
684
  opts.banner = subcommand_usage()
685
685
  build_common_options(opts, options, [:options, :json, :dry_run])
686
+ opts.on('-I','--insecure', "Allow insecure HTTPS communication. i.e. bad SSL certificate.") do |val|
687
+ options[:insecure] = true
688
+ Morpheus::RestClient.enable_ssl_verification = false
689
+ end
686
690
  opts.footer = "This can be used to initialize a new appliance.\n" +
687
691
  "You will be prompted to create the master account.\n" +
688
692
  "This is only available on a new, freshly installed, remote appliance."
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Morpheus
3
3
  module Cli
4
- VERSION = "2.11.3.1"
4
+ VERSION = "2.11.3.3"
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: 2.11.3.1
4
+ version: 2.11.3.3
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: 2017-06-28 00:00:00.000000000 Z
14
+ date: 2017-07-21 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler