foreman_maintain 1.10.3 → 1.10.4

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
  SHA256:
3
- metadata.gz: bd92aa45510fd828c1ff73193cffba5fba7f161842992465023d0028c0a2e80b
4
- data.tar.gz: '011833c73f3200e6858dd572fbc1b2eaebaea64c803ebf60720dd516770cdae8'
3
+ metadata.gz: baf8fa7305b17f1df7c66b10f797f227cd2ee3772287dfb309e492f27ce7ddd1
4
+ data.tar.gz: d94c1396c1ff801615f1a09f7147dbeb5a96ef6b6b4793d93f694f2d29a5145b
5
5
  SHA512:
6
- metadata.gz: 011a42195a870265ce392f72c05f6e65a085491879850f59ccf137acdbb39c9963b0929d842b3e8fcb116ea8dd03c70cc296bdc252f7da2101281235923d99ca
7
- data.tar.gz: 62f0782ce86392e56f9a49eb7ba6b076d817b812c0b19d1587e3a14cd359dd871367e486d68145771dcc9aec38fc7d6c38cc8c504700fb7ab6101b406e514112
6
+ metadata.gz: 631ebc0eea9b43d42dd6bd6384a6e6dcb38d96adca6a9546ac2e2d011157882fd34c92a3c92c161e5f939100f06a9d19942afce68dc7d41abcf6259af6ad0a86
7
+ data.tar.gz: 02f23eecbdcbce3a45f2c92ce867216f2608e20572cea3cc03492e742e9f729560d457ee63f135e3da53ce925523f29af5fb4c83664ac94293bb1e218a9b5559
@@ -10,9 +10,11 @@ class Checks::SystemRegistration < ForemanMaintain::Check
10
10
  end
11
11
 
12
12
  def run
13
- if rhsm_hostname_eql_hostname?
14
- warn! 'System is self registered'
15
- end
13
+ assert(!rhsm_hostname_eql_hostname?, 'System is self registered',
14
+ {
15
+ :warn => true,
16
+ :next_steps => [Procedures::KnowledgeBaseArticle.new(:doc => 'self_registered')],
17
+ })
16
18
  end
17
19
 
18
20
  def rhsm_hostname
@@ -26,6 +26,7 @@ class Procedures::KnowledgeBaseArticle < ForemanMaintain::Procedure
26
26
  'fix_cpdb_validate_failure' => 'https://access.redhat.com/solutions/3362821',
27
27
  'fix_db_migrate_failure_on_duplicate_roles' => 'https://access.redhat.com/solutions/3998941',
28
28
  'many_fact_values' => 'https://access.redhat.com/solutions/4163891',
29
+ 'self_registered' => 'https://access.redhat.com/solutions/3225941',
29
30
  }
30
31
  end
31
32
  end
@@ -24,7 +24,7 @@ module Reports
24
24
  <<-SQL
25
25
  select max(operatingsystems.name) as os_name, count(*) as hosts_count
26
26
  from hosts inner join operatingsystems on operatingsystem_id = operatingsystems.id
27
- group by operatingsystem_id
27
+ group by operatingsystems.name
28
28
  SQL
29
29
  ).
30
30
  to_h { |row| [row['os_name'], row['hosts_count'].to_i] }
@@ -137,7 +137,7 @@ module ForemanMaintain
137
137
  option '--label', 'label',
138
138
  'Run only a specific check with a label. ' \
139
139
  '(Use "list" command to see available labels)' do |label|
140
- raise ArgumentError, 'value not specified' if label.nil? || label.empty?
140
+ raise ArgumentError, 'no value provided' if label.nil? || label.empty?
141
141
  underscorize(label).to_sym
142
142
  end
143
143
  end
@@ -147,7 +147,7 @@ module ForemanMaintain
147
147
  'Run only those with all specific set of tags. ' \
148
148
  '(Use list-tags command to see available tags)',
149
149
  :multivalued => true) do |tags|
150
- raise ArgumentError, 'value not specified' if tags.nil? || tags.empty?
150
+ raise ArgumentError, 'no value provided' if tags.nil? || tags.empty?
151
151
  tags.map { |tag| underscorize(tag).to_sym }
152
152
  end
153
153
  end
@@ -166,7 +166,7 @@ module ForemanMaintain
166
166
  if opts.include?('whitelist')
167
167
  option(['-w', '--whitelist'], 'whitelist',
168
168
  'Comma-separated list of labels of steps to be skipped') do |whitelist|
169
- raise ArgumentError, 'value not specified' if whitelist.nil? || whitelist.empty?
169
+ raise ArgumentError, 'no value provided' if whitelist.nil? || whitelist.empty?
170
170
  whitelist.split(',').map(&:strip)
171
171
  end
172
172
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanMaintain
2
- VERSION = '1.10.3'.freeze
2
+ VERSION = '1.10.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_maintain
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.3
4
+ version: 1.10.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-02 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: clamp
@@ -446,7 +446,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
446
446
  - !ruby/object:Gem::Version
447
447
  version: '0'
448
448
  requirements: []
449
- rubygems_version: 3.6.2
449
+ rubygems_version: 3.6.9
450
450
  specification_version: 4
451
451
  summary: Foreman maintenance tool belt
452
452
  test_files: []