manageiq-appliance_console 7.2.0 → 7.2.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
  SHA256:
3
- metadata.gz: 81ef1030034c190aa4fc241853afd0f5e40395b4fd8d94b9c0782253462c8d71
4
- data.tar.gz: 28d2102f5ff3b9248db6856b2da027b8562f0481292f7d28ddbae3ce91fb4f21
3
+ metadata.gz: 021c433c615f94bacc4ff3451b4ba8a1b4ec06314a6b904878af06955045bd01
4
+ data.tar.gz: 6b9645b97157b890b7fa9070b9ce92cb144c925b3546fecf244dd5b67fcf475c
5
5
  SHA512:
6
- metadata.gz: 4e563cc050899e2b62e8bc3546664d3c28c3abbb0979328fa0125c4e38ef9910553f938a317d144238205c2c76e98dc3de7ef963e3ac8e80f7f8761cc117fe0c
7
- data.tar.gz: 524948a3576e46b19de0fb94f1248d16805e4d4dec94b5e29730e72065dd266edad5f76db73b94165c33b7de289208421e8d153a0cf24a013c1064452e9b834c
6
+ metadata.gz: 1e44783d9a5c85c2fc9773bd8c262cd726131a622e84e96e5d4e77b88b20512bec97828238be1ac58ed2872809b5af2d90cb25119344fc6df8f962911ad81442
7
+ data.tar.gz: 3d8c40bb89caa6e6aee9b5703f8d1982f895117aba2b0fa5d09bf29a89f20fd270e1c220da48573c9acb8a2b6a4078b40bbb8811045ee428ddfeb650965a11db
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
- source 'http://rubygems.manageiq.org'
2
1
  source 'https://rubygems.org'
3
2
 
4
3
  # Specify your gem's dependencies in manageiq-appliance_console.gemspec
@@ -5,7 +5,7 @@
5
5
  require 'bundler'
6
6
  Bundler.setup
7
7
 
8
- require 'manageiq-appliance_console'
8
+ require 'manageiq/appliance_console'
9
9
 
10
10
  require 'fileutils'
11
11
  require 'highline/import'
@@ -3,5 +3,5 @@
3
3
  require 'bundler'
4
4
  Bundler.setup
5
5
 
6
- require 'manageiq-appliance_console'
6
+ require 'manageiq/appliance_console'
7
7
  ManageIQ::ApplianceConsole::Cli.parse(ARGV)
@@ -151,8 +151,8 @@ Replication Server Configuration
151
151
  end
152
152
  end
153
153
 
154
- Process.wait(pid)
155
- $CHILD_STATUS.success?
154
+ pid, status = Process.wait2(pid)
155
+ status.success?
156
156
  end
157
157
 
158
158
  def primary_connection_hash
@@ -10,12 +10,14 @@ module ApplianceConsole
10
10
  attr_accessor :service
11
11
  # kerberos principal name
12
12
  attr_accessor :name
13
+ attr_accessor :service_principal
13
14
 
14
15
  def initialize(options = {})
15
16
  options.each { |n, v| public_send("#{n}=", v) }
16
17
  @ca_name ||= "ipa"
17
18
  @realm = @realm.upcase if @realm
18
- @name ||= "#{service}/#{hostname}@#{realm}"
19
+ @service_principal ||= "#{service}/#{hostname}"
20
+ @name ||= "#{service_principal}@#{realm}"
19
21
  end
20
22
 
21
23
  def register
@@ -33,13 +35,13 @@ module ApplianceConsole
33
35
  private
34
36
 
35
37
  def exist?
36
- AwesomeSpawn.run("/usr/bin/ipa", :params => ["-e", "skip_version_check=1", "service-find", "--principal", name]).success?
38
+ AwesomeSpawn.run("/usr/bin/ipa", :params => ["-e", "skip_version_check=1", "service-find", "--principal", service_principal]).success?
37
39
  end
38
40
 
39
41
  def request
40
42
  # using --force because these services tend not to be in dns
41
43
  # this is like VERIFY_NONE
42
- AwesomeSpawn.run!("/usr/bin/ipa", :params => ["-e", "skip_version_check=1", "service-add", "--force", name])
44
+ AwesomeSpawn.run!("/usr/bin/ipa", :params => ["-e", "skip_version_check=1", "service-add", "--force", service_principal])
43
45
  end
44
46
  end
45
47
  end
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module ApplianceConsole
3
- VERSION = '7.2.0'.freeze
3
+ VERSION = '7.2.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-appliance_console
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.0
4
+ version: 7.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-01 00:00:00.000000000 Z
11
+ date: 2023-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -352,7 +352,7 @@ files:
352
352
  - Rakefile
353
353
  - bin/appliance_console
354
354
  - bin/appliance_console_cli
355
- - lib/manageiq-appliance_console.rb
355
+ - lib/manageiq/appliance_console.rb
356
356
  - lib/manageiq/appliance_console/auth_utilities.rb
357
357
  - lib/manageiq/appliance_console/certificate.rb
358
358
  - lib/manageiq/appliance_console/certificate_authority.rb
@@ -410,7 +410,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
410
410
  - !ruby/object:Gem::Version
411
411
  version: '0'
412
412
  requirements: []
413
- rubygems_version: 3.3.15
413
+ rubygems_version: 3.2.33
414
414
  signing_key:
415
415
  specification_version: 4
416
416
  summary: ManageIQ Appliance Console