foreman_maintain 1.0.15 → 1.0.17

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: 67560267151a5d6834a062b2bf14d776149cc6137cab2e260d96057ee61b6ef5
4
- data.tar.gz: 7246d6a07958e7426f21f1094be8f2d84b7da1fcbc7422183770060c599c46a2
3
+ metadata.gz: 84beb23b16dd631324e77e864150007d3c9dd9cd610e8d5e98471b836f1225d0
4
+ data.tar.gz: 44b3168e40102a7721faf2429519df681feed5e296bbfd14c12764eb042e953b
5
5
  SHA512:
6
- metadata.gz: 32034709e2b49b1ab049be1e934540dccb77440bfc01206149fc47da13bf3ab6d1a422105ea92c2cce74bc05e378774b480c80190f300abf5508b28573020c7b
7
- data.tar.gz: 10c21481d5fcc501acd7b3e12b75195c1b52591c6b39bf4d66dda2503e723170201e72b7fa87851d4f6eb8cb14e2a455ec043ab0e425707e225482dd6d4f5316
6
+ metadata.gz: 2bb749f61ed5c56b9120a39284d1a871ab9d2ad6be79d291bdf44a368c74f8e78c8f3db2ee19b1c8c796c20d2cb9536c128509059806bb1adff4f030b9182590
7
+ data.tar.gz: 02b7559f820145c7255a0346490d93328c0304c2188a7f2293494a626a89d431a75e275ee5ebb86a098979fe8c966f53f9936748d13467eb092cef7fe7ceb399
@@ -2,8 +2,7 @@ module ForemanMaintain::Scenarios
2
2
  class SelfUpgradeBase < ForemanMaintain::Scenario
3
3
  include ForemanMaintain::Concerns::Downstream
4
4
  def target_version
5
- current_full_version = feature(:instance).downstream.current_version
6
- @target_version ||= current_full_version.bump
5
+ @target_version ||= current_version.bump
7
6
  end
8
7
 
9
8
  def current_version
@@ -43,7 +42,11 @@ module ForemanMaintain::Scenarios
43
42
  end
44
43
 
45
44
  def req_repos_to_update_pkgs
46
- main_rh_repos + [maintenance_repo_id(target_version)]
45
+ if use_rhsm?
46
+ main_rh_repos + [maintenance_repo_id(target_version)]
47
+ else
48
+ [maintenance_repo_id(target_version)]
49
+ end
47
50
  end
48
51
  end
49
52
 
@@ -1,3 +1,3 @@
1
1
  module ForemanMaintain
2
- VERSION = '1.0.15'.freeze
2
+ VERSION = '1.0.17'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_maintain
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.15
4
+ version: 1.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-04 00:00:00.000000000 Z
11
+ date: 2022-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp
@@ -453,7 +453,7 @@ homepage: https://github.com/theforeman/foreman_maintain
453
453
  licenses:
454
454
  - GPL-3.0
455
455
  metadata: {}
456
- post_install_message:
456
+ post_install_message:
457
457
  rdoc_options: []
458
458
  require_paths:
459
459
  - lib
@@ -468,8 +468,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
468
468
  - !ruby/object:Gem::Version
469
469
  version: '0'
470
470
  requirements: []
471
- rubygems_version: 3.0.9
472
- signing_key:
471
+ rubygems_version: 3.2.33
472
+ signing_key:
473
473
  specification_version: 4
474
474
  summary: Foreman maintenance tool belt
475
475
  test_files: []