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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5e95ad904a84a122e5c9d82120299674f55998997acab8c8d29af3848a78d42
|
4
|
+
data.tar.gz: 66e3dbc6a9f9862a23d8c9ec0dd82f5fd3e3b856fbf5d3844eadbf448b762284
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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)
|