foreman_maintain 1.1.10 → 1.1.12
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d621d0e1184d6deb939587599eed9f025247de90cb18aef3d7ac81e813590e1
|
4
|
+
data.tar.gz: 1b6a61eb0de1b6729252d159798c6b2f01f2e2f6647e8e9381eac634eca1fb2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26824e188738b6ff12c49538392c94c46fe3974522501dd82d6b70b9550d042b81720b8c5b17b7770e6d8d8d566219b2bdd1987a94e043a9c6cbd16b5ad96759
|
7
|
+
data.tar.gz: 49851d74ea475c55aeeaf0db4f8e5d907e7de53cd464d04d846b34ba3cc015542027b1743db0777d4aea24f4da7d31cd3de75e2bd60fe359981973a301e757e6
|
@@ -144,7 +144,7 @@ class Features::ForemanProxy < ForemanMaintain::Feature
|
|
144
144
|
|
145
145
|
cmd = "curl -w '\n%{http_code}' -s "
|
146
146
|
cmd += format_shell_args('--cert' => ssl_cert, '--key' => ssl_key, '--cacert' => ssl_ca)
|
147
|
-
cmd += " https
|
147
|
+
cmd += " https://#{hostname}:#{proxy_settings[:https_port]}"
|
148
148
|
cmd
|
149
149
|
end
|
150
150
|
|
@@ -17,6 +17,7 @@ class Features::ForemanTasks < ForemanMaintain::Feature
|
|
17
17
|
Actions::Candlepin::ListenOnCandlepinEvents
|
18
18
|
Actions::Katello::EventQueue::Monitor
|
19
19
|
Actions::Insights::EmailPoller
|
20
|
+
ForemanInventoryUpload::Async::GenerateAllReportsJob
|
20
21
|
ForemanInventoryUpload::Async::GenerateReportJob
|
21
22
|
ForemanInventoryUpload::Async::QueueForUploadJob
|
22
23
|
ForemanInventoryUpload::Async::UploadReportJob
|
@@ -24,6 +25,7 @@ class Features::ForemanTasks < ForemanMaintain::Feature
|
|
24
25
|
InsightsCloud::Async::InsightsFullSync
|
25
26
|
InsightsCloud::Async::InsightsResolutionsSync
|
26
27
|
InsightsCloud::Async::InsightsRulesSync
|
28
|
+
InsightsCloud::Async::InsightsScheduledSync
|
27
29
|
InventorySync::Async::InventoryFullSync
|
28
30
|
InventorySync::Async::InventoryHostsSync
|
29
31
|
InventorySync::Async::InventoryScheduledSync
|
@@ -33,12 +33,22 @@ class Features::SyncPlans < ForemanMaintain::Feature
|
|
33
33
|
feature(:foreman_database).query(query).map { |r| r['id'].to_i }
|
34
34
|
end
|
35
35
|
|
36
|
+
def validate_sync_plan_ids(ids)
|
37
|
+
return [] if ids.empty?
|
38
|
+
|
39
|
+
ids_condition = ids.map { |id| "'#{id}'" }.join(',')
|
40
|
+
query = "SELECT id FROM katello_sync_plans WHERE id IN (#{ids_condition})"
|
41
|
+
feature(:foreman_database).query(query).map { |r| r['id'].to_i }
|
42
|
+
end
|
43
|
+
|
36
44
|
def make_disable(ids)
|
37
45
|
update_records(ids, false)
|
38
46
|
end
|
39
47
|
|
40
48
|
def make_enable
|
41
|
-
|
49
|
+
# remove ids of sync plans which no longer exist in DB
|
50
|
+
@data[:disabled] = validate_sync_plan_ids(@data[:disabled])
|
51
|
+
update_records(@data[:disabled], true)
|
42
52
|
end
|
43
53
|
|
44
54
|
def load_from_storage(storage)
|
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.1.
|
4
|
+
version: 1.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Nečas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|
@@ -485,7 +485,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
485
485
|
- !ruby/object:Gem::Version
|
486
486
|
version: '0'
|
487
487
|
requirements: []
|
488
|
-
rubygems_version: 3.
|
488
|
+
rubygems_version: 3.2.33
|
489
489
|
signing_key:
|
490
490
|
specification_version: 4
|
491
491
|
summary: Foreman maintenance tool belt
|