morpheus-cli 2.11.3 → 2.11.3.1

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: 6d561294737f605bb14714d84f21984797f012b2
4
- data.tar.gz: 857aa6f016e8f4db4cfaea280703a7f71adac83a
3
+ metadata.gz: 836015cb51a22a6a3da1217038e96675f6876044
4
+ data.tar.gz: b33d6a043d810fcd2a3bfaefaaf671eeee21cf96
5
5
  SHA512:
6
- metadata.gz: 941e2fd2a2478c7af97e604f3bbea977874a585b5a4dcd0d526bce39434b4461b9859556f509054239b0fd957919f36b5606304e314f2befda86667d888aec15
7
- data.tar.gz: 1fe0c7f8d07df32dd4ea2b771ef2b21106831115d3d3c0a51358e8b9c640be215a3057b12f8f3608524fb46aee02b8f6fa5eef2f60599b6653e1553df6e3cb16
6
+ metadata.gz: 2b9343e8835af95275215825186ad1162ffcb83288a39df86f5bdf5a21b145e4ba018f69d194b389f9a983d592e7ee5854b00ff93b3fd9c50f8d8666682c13c7
7
+ data.tar.gz: d8b85d7f7daece9b2e113bdf7fcad9cfeaaf0541a5a64e39cf3950a2ff503e47bfc1147be7dbad53154c5b486217d6c0792b276006a5795febb59d49d997fd50
@@ -551,13 +551,15 @@ module Morpheus
551
551
  # this should just be an attribute of the api client
552
552
  # for now, this fixes the issue where passing --insecure or --remote
553
553
  # would then apply to all subsequent commands...
554
- if options[:insecure]
555
- Morpheus::RestClient.enable_ssl_verification = false
556
- else
557
- if appliance[:insecure] && Morpheus::RestClient.ssl_verification_enabled?
554
+ if !Morpheus::Cli::Shell.insecure
555
+ if options[:insecure]
558
556
  Morpheus::RestClient.enable_ssl_verification = false
559
- elsif !appliance[:insecure] && !Morpheus::RestClient.ssl_verification_enabled?
560
- Morpheus::RestClient.enable_ssl_verification = true
557
+ else
558
+ if appliance[:insecure] && Morpheus::RestClient.ssl_verification_enabled?
559
+ Morpheus::RestClient.enable_ssl_verification = false
560
+ elsif !appliance[:insecure] && !Morpheus::RestClient.ssl_verification_enabled?
561
+ Morpheus::RestClient.enable_ssl_verification = true
562
+ end
561
563
  end
562
564
  end
563
565
 
@@ -1140,7 +1140,9 @@ EOT
1140
1140
  end
1141
1141
 
1142
1142
  # todo: this insecure flag needs to applied everywhere now tho..
1143
- Morpheus::RestClient.enable_ssl_verification = app_map[:insecure].to_s == 'true'
1143
+ if app_map[:insecure]
1144
+ Morpheus::RestClient.enable_ssl_verification = false
1145
+ end
1144
1146
  # Morpheus::RestClient.enable_http = app_map[:insecure].to_s == 'true'
1145
1147
  setup_interface = Morpheus::SetupInterface.new(app_url)
1146
1148
  begin
@@ -24,6 +24,10 @@ class Morpheus::Cli::Shell
24
24
  @@instance = self.new
25
25
  end
26
26
 
27
+ def self.insecure
28
+ !!(defined?(@@insecure) && @@insecure == true)
29
+ end
30
+
27
31
  attr_accessor :prompt #, :angry_prompt
28
32
 
29
33
  def initialize()
@@ -107,6 +111,7 @@ class Morpheus::Cli::Shell
107
111
  @norc = true
108
112
  end
109
113
  opts.on('-I','--insecure', "Allow for insecure HTTPS communication i.e. bad SSL certificate") do |val|
114
+ @@insecure = true
110
115
  Morpheus::RestClient.enable_ssl_verification = false
111
116
  end
112
117
  opts.on('-C','--nocolor', "Disable ANSI coloring") do
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Morpheus
3
3
  module Cli
4
- VERSION = "2.11.3"
4
+ VERSION = "2.11.3.1"
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
4
+ version: 2.11.3.1
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-26 00:00:00.000000000 Z
14
+ date: 2017-06-28 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler