foreman_maintain 1.12.2 → 1.12.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
  SHA256:
3
- metadata.gz: 841269b0b17944b3a732b728e7c51ba5c11bdec27b47c45ce6b13fb61ec8be06
4
- data.tar.gz: 966dd22a328585cb68ecb248341b8b566787f7efa6f590eb8dc1877203fdc895
3
+ metadata.gz: b5e95ad904a84a122e5c9d82120299674f55998997acab8c8d29af3848a78d42
4
+ data.tar.gz: 66e3dbc6a9f9862a23d8c9ec0dd82f5fd3e3b856fbf5d3844eadbf448b762284
5
5
  SHA512:
6
- metadata.gz: f996ba857e7ad9598f6b4e26811710387d8592c2841bb26dbf63660d44774c388312ab217d795dbd24c258767b3c276b048f13ced797927703dd6c85dbde106f
7
- data.tar.gz: 72cc8e83ee3ff2fb76fdcaa226695c05b90fe70ed63bb82b7d65e8307d82cbab6b6141b51a8f5ceaac410648d41f9308744998b255a9ab2e9f8bf43b0d50d8fa
6
+ metadata.gz: ab607c39722607f8e80a56ffe3406d34bed7c72335bcba543b5fe76c339bc5e12216a588d5dacbc665f943f79b07cd00c293496425c925932d2a6dd9130efc91
7
+ data.tar.gz: '0290ebaa45d7c32847a1d0f92b23dd12f98e0b951c486c10f2cc043d8f53c488085a3f1095e585b70e2db60b9dbb12ad5ee60bcd9eec1741cb269e5ce2b08830'
@@ -5,7 +5,7 @@ module Checks::Container
5
5
  confine do
6
6
  feature(:satellite)&.connected? && feature(:containers)
7
7
  end
8
- description 'Check whether podman is logged in to registry'
8
+ description 'Check whether podman needs to be logged in to the registry'
9
9
  tags :pre_upgrade
10
10
  end
11
11
 
@@ -12,8 +12,9 @@ module ForemanMaintain::Utils
12
12
  def command(action)
13
13
  all = @options.fetch(:all, false)
14
14
  skip_enablement = @options.fetch(:skip_enablement, false)
15
- if skip_enablement && %w[enable disable].include?(action)
16
- return skip_enablement_message(action, @name)
15
+ if %w[enable disable].include?(action)
16
+ return skip_enablement_message(action, @name) if skip_enablement
17
+ return if generated?
17
18
  end
18
19
 
19
20
  cmd = "systemctl #{action} #{@name}"
@@ -59,6 +60,10 @@ module ForemanMaintain::Utils
59
60
  end
60
61
  end
61
62
 
63
+ def generated?
64
+ service_enabled_status == 'generated'
65
+ end
66
+
62
67
  def matches?(service)
63
68
  if service.is_a? String
64
69
  service == @name || File.fnmatch(service, @name)
@@ -1,3 +1,3 @@
1
1
  module ForemanMaintain
2
- VERSION = '1.12.2'.freeze
2
+ VERSION = '1.12.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_maintain
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.2
4
+ version: 1.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas