foreman_leapp 1.2.1 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/foreman_leapp/locale/de/foreman_leapp.js +65 -80
- data/app/assets/javascripts/foreman_leapp/locale/en/foreman_leapp.js +44 -44
- data/app/assets/javascripts/foreman_leapp/locale/fr/foreman_leapp.js +1 -1
- data/app/assets/javascripts/foreman_leapp/locale/ja/foreman_leapp.js +1 -1
- data/app/assets/javascripts/foreman_leapp/locale/ka/foreman_leapp.js +77 -92
- data/app/assets/javascripts/foreman_leapp/locale/zh_CN/foreman_leapp.js +1 -1
- data/app/controllers/api/v2/concerns/api_authorizer.rb +2 -2
- data/app/lib/actions/{preupgrade_job.rb → foreman_leapp/preupgrade_job.rb} +2 -2
- data/app/lib/helpers/job_helper.rb +6 -8
- data/app/views/foreman_leapp/job_templates/leapp_remediation.erb +3 -0
- data/config/routes.rb +1 -1
- data/db/seeds.d/10_leapp_preupgrade.rb +1 -1
- data/lib/foreman_leapp/engine.rb +5 -2
- data/lib/foreman_leapp/version.rb +1 -1
- data/locale/Makefile +12 -2
- data/locale/de/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/de/foreman_leapp.po +1 -3
- data/locale/en/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/en/foreman_leapp.po +2 -1
- data/locale/fr/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/fr/foreman_leapp.po +2 -3
- data/locale/ja/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/ja/foreman_leapp.po +1 -1
- data/locale/ka/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/ka/foreman_leapp.po +9 -9
- data/locale/zh_CN/LC_MESSAGES/foreman_leapp.mo +0 -0
- data/locale/zh_CN/foreman_leapp.po +1 -1
- data/test/helpers/template_helper_test.rb +2 -2
- data/test/unit/actions/preupgrade_job_test.rb +1 -1
- data/test/unit/helpers/job_helper_test.rb +2 -2
- metadata +3 -19
- data/locale/de/foreman_leapp.edit.po +0 -226
- data/locale/de/foreman_leapp.po.time_stamp +0 -0
- data/locale/en/foreman_leapp.edit.po +0 -217
- data/locale/en/foreman_leapp.po.time_stamp +0 -0
- data/locale/fr/foreman_leapp.edit.po +0 -218
- data/locale/fr/foreman_leapp.po.time_stamp +0 -0
- data/locale/ja/foreman_leapp.edit.po +0 -218
- data/locale/ja/foreman_leapp.po.time_stamp +0 -0
- data/locale/ka/foreman_leapp.edit.po +0 -220
- data/locale/ka/foreman_leapp.po.time_stamp +0 -0
- data/locale/pt_BR/foreman_leapp.edit.po +0 -225
- data/locale/pt_BR/foreman_leapp.po.time_stamp +0 -0
- data/locale/zh_CN/foreman_leapp.edit.po +0 -224
- data/locale/zh_CN/foreman_leapp.po.time_stamp +0 -0
- data/locale/zh_TW/foreman_leapp.edit.po +0 -222
- data/locale/zh_TW/foreman_leapp.po.time_stamp +0 -0
@@ -3,7 +3,7 @@
|
|
3
3
|
"locale_data": {
|
4
4
|
"foreman_leapp": {
|
5
5
|
"": {
|
6
|
-
"Project-Id-Version": "foreman_leapp 0.
|
6
|
+
"Project-Id-Version": "foreman_leapp 2.0.0",
|
7
7
|
"Report-Msgid-Bugs-To": "",
|
8
8
|
"PO-Revision-Date": "2022-10-12 12:00+0000",
|
9
9
|
"Last-Translator": "Temuri Doghonadze <temuri.doghonadze@gmail.com>, 2023",
|
@@ -17,149 +17,134 @@
|
|
17
17
|
"domain": "foreman_leapp",
|
18
18
|
"plural_forms": "nplurals=2; plural=(n!=1);"
|
19
19
|
},
|
20
|
-
"
|
21
|
-
"
|
22
|
-
],
|
23
|
-
"List Preupgrade reports": [
|
24
|
-
"განახლებისწინა ანგარიშების სია"
|
25
|
-
],
|
26
|
-
"Show Preupgrade report": [
|
27
|
-
"განახლებისწინა ანგარიშის ჩვენება"
|
28
|
-
],
|
29
|
-
"List Preupgrade reports for Job invocation": [
|
30
|
-
"განახლებისწინა ანგარიშების სია დავალების ჩასაწოდებლად"
|
20
|
+
"A Foreman plugin to support inplace RHEL upgrades with Leapp utility.": [
|
21
|
+
"Foreman-ის დამატება RHEL-ის Leapp-ით ადგილზე განახლების მხარდასაჭერად."
|
31
22
|
],
|
32
|
-
"
|
33
|
-
"
|
23
|
+
"All": [
|
24
|
+
"ყველა"
|
34
25
|
],
|
35
|
-
"
|
36
|
-
"
|
26
|
+
"Command": [
|
27
|
+
"ბრძანება"
|
37
28
|
],
|
38
|
-
"
|
39
|
-
"
|
29
|
+
"Could not retrieve data: %(status) - %(msg)": [
|
30
|
+
"მონაცემების მიღების შეცდომა: %(status) - %(msg)"
|
40
31
|
],
|
41
|
-
"
|
42
|
-
"
|
32
|
+
"Failed to fetch preupgrade reports from server.": [
|
33
|
+
"სერვერიდან განახლებისწინა ანგარიშების გამოთხოვის შეცდომა."
|
43
34
|
],
|
44
|
-
"
|
45
|
-
"
|
35
|
+
"Fix Selected": [
|
36
|
+
"არჩეული გასწორება"
|
46
37
|
],
|
47
|
-
"
|
48
|
-
"
|
38
|
+
"Fix Type": [
|
39
|
+
"გასწორების ტიპი"
|
49
40
|
],
|
50
|
-
"
|
51
|
-
"
|
41
|
+
"Has Remediation": [
|
42
|
+
"აქვს აღდგენა"
|
52
43
|
],
|
53
|
-
"
|
54
|
-
""
|
44
|
+
"Has Remediation?": [
|
45
|
+
"აქვს გაუქმება?"
|
55
46
|
],
|
56
|
-
"
|
57
|
-
""
|
47
|
+
"High": [
|
48
|
+
"მაღალი"
|
58
49
|
],
|
59
|
-
"
|
60
|
-
"
|
50
|
+
"High Risk Factor": [
|
51
|
+
"მაღალი რისკის ფაქტორი"
|
61
52
|
],
|
62
|
-
"
|
63
|
-
"
|
53
|
+
"Hint": [
|
54
|
+
"მინიშნება"
|
64
55
|
],
|
65
56
|
"Host": [
|
66
57
|
"ჰოსტი"
|
67
58
|
],
|
68
|
-
"
|
69
|
-
"
|
59
|
+
"Info": [
|
60
|
+
"ინფორმაცია"
|
70
61
|
],
|
71
62
|
"Inhibitor": [
|
72
63
|
"ინჰიბიტორი"
|
73
64
|
],
|
74
|
-
"
|
75
|
-
"
|
65
|
+
"Inhibitor?": [
|
66
|
+
"ინჰიბიტორი?"
|
67
|
+
],
|
68
|
+
"Leapp preupgrade report": [
|
69
|
+
"Leapp-ის განახლებისწინა ანგარიში"
|
70
|
+
],
|
71
|
+
"Links": [
|
72
|
+
"ბმულები"
|
73
|
+
],
|
74
|
+
"List Preupgrade reports": [
|
75
|
+
"განახლებისწინა ანგარიშების სია"
|
76
|
+
],
|
77
|
+
"List Preupgrade reports for Job invocation": [
|
78
|
+
"განახლებისწინა ანგარიშების სია დავალების ჩასაწოდებლად"
|
76
79
|
],
|
77
80
|
"Low": [
|
78
81
|
"დაბალი"
|
79
82
|
],
|
83
|
+
"Low Risk Factor": [
|
84
|
+
"დაბალი რისკის ფაქტორი"
|
85
|
+
],
|
80
86
|
"Medium": [
|
81
87
|
"საშუალო"
|
82
88
|
],
|
83
|
-
"
|
84
|
-
"
|
85
|
-
],
|
86
|
-
"Info": [
|
87
|
-
"ინფორმაცია"
|
88
|
-
],
|
89
|
-
"Hint": [
|
90
|
-
"მინიშნება"
|
91
|
-
],
|
92
|
-
"Command": [
|
93
|
-
"ბრძანება"
|
89
|
+
"Medium Risk Factor": [
|
90
|
+
"საშუალო რისკის ფაქტორი"
|
94
91
|
],
|
95
|
-
"
|
96
|
-
"
|
92
|
+
"Missing one of the required permissions: view_hosts": [
|
93
|
+
"აკლია ერთ-ერთი საჭირო ნებართვა: view_hosts"
|
97
94
|
],
|
98
95
|
"No": [
|
99
96
|
"არა"
|
100
97
|
],
|
101
|
-
"Fix Selected": [
|
102
|
-
"არჩეული გასწორება"
|
103
|
-
],
|
104
|
-
"The preupgrade report could not be generated, check the job details for the reason": [
|
105
|
-
"განახლებამდელი ანგარიშის შექმნის შეცდომა. მიზეზისთვის იხილეთ დავალების დეტალები"
|
106
|
-
],
|
107
|
-
"The preupgrade report will be available after the job finishes": [
|
108
|
-
"განახლებისწინა ანგარიში დავალების დასრულების შემდეგ იქნება ხელმისაწვდომი"
|
109
|
-
],
|
110
98
|
"No Preupgrade Report Available": [
|
111
99
|
"განახლებისწინა ანგარიში ხელმისაწვდომი არაა"
|
112
100
|
],
|
113
|
-
"
|
114
|
-
"
|
115
|
-
],
|
116
|
-
"This issue inhibits the upgrade.": [
|
117
|
-
"ეს პრობლემა აჩერებს განახლებას."
|
101
|
+
"Preupgrade check with Leapp": [
|
102
|
+
"განახლებისწინა შემოწმება Leapp-ით"
|
118
103
|
],
|
119
|
-
"
|
120
|
-
"
|
104
|
+
"Remediation plan": [
|
105
|
+
"გაუქმების გეგმა"
|
121
106
|
],
|
122
|
-
"
|
123
|
-
"
|
107
|
+
"Risk Factor": [
|
108
|
+
"რისკის ფაქტორი"
|
124
109
|
],
|
125
|
-
"
|
126
|
-
""
|
110
|
+
"Run Leapp upgrade job for RHEL host": [
|
111
|
+
"RHEL ჰოსტზე Leapp-ის გაშვება"
|
127
112
|
],
|
128
|
-
"
|
129
|
-
""
|
113
|
+
"Run Remediation plan with Leapp": [
|
114
|
+
"გაუქმების გეგმის Leapp-ით გაშვება"
|
130
115
|
],
|
131
|
-
"
|
132
|
-
""
|
116
|
+
"Run Upgrade": [
|
117
|
+
"განახლების გაშვება"
|
133
118
|
],
|
134
|
-
"
|
135
|
-
""
|
119
|
+
"Show Preupgrade report": [
|
120
|
+
"განახლებისწინა ანგარიშის ჩვენება"
|
136
121
|
],
|
137
122
|
"Summary": [
|
138
123
|
"შეჯამება"
|
139
124
|
],
|
140
125
|
"Tags": [
|
141
|
-
""
|
126
|
+
"ჭდეები"
|
142
127
|
],
|
143
|
-
"
|
144
|
-
""
|
128
|
+
"The preupgrade report could not be generated, check the job details for the reason": [
|
129
|
+
"განახლებამდელი ანგარიშის შექმნის შეცდომა. მიზეზისთვის იხილეთ დავალების დეტალები"
|
145
130
|
],
|
146
|
-
"
|
147
|
-
"
|
131
|
+
"The preupgrade report will be available after the job finishes": [
|
132
|
+
"განახლებისწინა ანგარიში დავალების დასრულების შემდეგ იქნება ხელმისაწვდომი"
|
148
133
|
],
|
149
|
-
"
|
150
|
-
"
|
134
|
+
"This issue inhibits the upgrade.": [
|
135
|
+
"ეს პრობლემა აჩერებს განახლებას."
|
151
136
|
],
|
152
|
-
"
|
153
|
-
"
|
137
|
+
"Title": [
|
138
|
+
"სათაური"
|
154
139
|
],
|
155
|
-
"
|
156
|
-
"
|
140
|
+
"Upgrade with Leapp": [
|
141
|
+
"Leapp-ით განახლება"
|
157
142
|
],
|
158
|
-
"
|
159
|
-
"
|
143
|
+
"Upgradeability check for RHEL host": [
|
144
|
+
"RHEL ჰოსტის განახლებადობის შემოწმება"
|
160
145
|
],
|
161
|
-
"
|
162
|
-
"
|
146
|
+
"Yes": [
|
147
|
+
"დიახ"
|
163
148
|
]
|
164
149
|
}
|
165
150
|
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
"locale_data": {
|
4
4
|
"foreman_leapp": {
|
5
5
|
"": {
|
6
|
-
"Project-Id-Version": "foreman_leapp
|
6
|
+
"Project-Id-Version": "foreman_leapp 2.0.0",
|
7
7
|
"Report-Msgid-Bugs-To": "",
|
8
8
|
"PO-Revision-Date": "2022-10-12 12:00+0000",
|
9
9
|
"Last-Translator": "Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2023",
|
@@ -13,8 +13,8 @@ module ApiAuthorizer
|
|
13
13
|
return if User.current.can?('view_hosts')
|
14
14
|
|
15
15
|
render_error 'access_denied', status: :forbidden,
|
16
|
-
|
17
|
-
|
16
|
+
locals: { details: N_('Missing one of the required permissions: view_hosts'),
|
17
|
+
missing_permissions: 'view_hosts' }
|
18
18
|
end
|
19
19
|
|
20
20
|
def resource_scope(_options = {})
|
@@ -8,8 +8,8 @@ module Actions
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def plan(job_invocation, host, *_args)
|
11
|
-
return unless ::
|
12
|
-
::
|
11
|
+
return unless ::JobHelper.correct_feature?(job_invocation, 'leapp_preupgrade') ||
|
12
|
+
::JobHelper.correct_feature?(job_invocation, 'leapp_remediation_plan')
|
13
13
|
|
14
14
|
plan_self(host_id: host.id, job_invocation_id: job_invocation.id)
|
15
15
|
end
|
@@ -1,13 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
module
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
.template_id, label: feature).any?
|
10
|
-
end
|
3
|
+
module JobHelper
|
4
|
+
class << self
|
5
|
+
def correct_feature?(job_invocation, feature)
|
6
|
+
RemoteExecutionFeature.where(job_template_id: job_invocation.pattern_template_invocations
|
7
|
+
.first
|
8
|
+
.template_id, label: feature).any?
|
11
9
|
end
|
12
10
|
end
|
13
11
|
end
|
data/config/routes.rb
CHANGED
@@ -5,7 +5,7 @@ Rails.application.routes.draw do
|
|
5
5
|
|
6
6
|
namespace :api, defaults: { format: 'json' } do
|
7
7
|
scope '(:apiv)', module: :v2, defaults: { apiv: 'v2' }, apiv: /v2/,
|
8
|
-
|
8
|
+
constraints: ApiConstraints.new( version: 2, default: true) do
|
9
9
|
resources :preupgrade_reports, only: %i[index show]
|
10
10
|
get 'job_invocations/:id/preupgrade_reports', to: 'preupgrade_reports#job_invocation'
|
11
11
|
end
|
@@ -14,7 +14,7 @@ User.as_anonymous_admin do
|
|
14
14
|
end
|
15
15
|
JobTemplate.without_auditing do
|
16
16
|
Dir[File.join("#{ForemanLeapp::Engine.root}/app/views/foreman_leapp/"\
|
17
|
-
'job_templates/**/*.erb')].each do |template|
|
17
|
+
'job_templates/**/*.erb')].sort.each do |template|
|
18
18
|
template = JobTemplate.import_raw!(File.read(template),
|
19
19
|
:default => true,
|
20
20
|
:lock => true,
|
data/lib/foreman_leapp/engine.rb
CHANGED
@@ -7,6 +7,9 @@ module ForemanLeapp
|
|
7
7
|
class Engine < ::Rails::Engine
|
8
8
|
engine_name 'foreman_leapp'
|
9
9
|
|
10
|
+
config.eager_load_paths += Dir["#{config.root}/app/controllers/api/v2/concerns"]
|
11
|
+
config.eager_load_paths += Dir["#{config.root}/app/lib/helpers"]
|
12
|
+
|
10
13
|
config.autoload_paths += Dir["#{config.root}/app/controllers/concerns"]
|
11
14
|
config.autoload_paths += Dir["#{config.root}/app/controllers/api/v2/concerns"]
|
12
15
|
config.autoload_paths += Dir["#{config.root}/app/helpers/concerns"]
|
@@ -36,8 +39,8 @@ module ForemanLeapp
|
|
36
39
|
name: _('Leapp preupgrade report'),
|
37
40
|
id: 'leapp_preupgrade_report',
|
38
41
|
onlyif: proc { |subject|
|
39
|
-
::
|
40
|
-
::
|
42
|
+
::JobHelper.correct_feature?(subject, 'leapp_preupgrade') ||
|
43
|
+
::JobHelper.correct_feature?(subject, 'leapp_remediation_plan')
|
41
44
|
}
|
42
45
|
end
|
43
46
|
|
data/locale/Makefile
CHANGED
@@ -31,9 +31,16 @@ all-mo: $(MOFILES)
|
|
31
31
|
cat $@
|
32
32
|
! grep -q msgid $@
|
33
33
|
|
34
|
-
%.edit.po:
|
34
|
+
%.edit.po: %.po.time_stamp
|
35
35
|
touch $@
|
36
36
|
|
37
|
+
# gettext will trash the .edit.po file if the time stamp doesn't exist or is older than the po file
|
38
|
+
%.po.time_stamp: %.po
|
39
|
+
touch --reference $< $@
|
40
|
+
|
41
|
+
# Prevent make from treating this as an intermediate file to be cleaned up
|
42
|
+
.PRECIOUS: %.po.time_stamp
|
43
|
+
|
37
44
|
check: $(POXFILES)
|
38
45
|
|
39
46
|
# Unify duplicate translations
|
@@ -43,7 +50,10 @@ uniq-po:
|
|
43
50
|
done
|
44
51
|
|
45
52
|
tx-pull: $(EDITFILES)
|
46
|
-
|
53
|
+
# Initialize new languages
|
54
|
+
cd .. && tx pull -f --all --minimum-perc 50
|
55
|
+
# Force update all existing languages
|
56
|
+
cd .. && tx pull -f --minimum-perc 0
|
47
57
|
for f in $(EDITFILES) ; do \
|
48
58
|
sed -i 's/^\("Project-Id-Version: \).*$$/\1$(DOMAIN) $(VERSION)\\n"/' $$f; \
|
49
59
|
done
|
Binary file
|
data/locale/de/foreman_leapp.po
CHANGED
@@ -8,13 +8,11 @@
|
|
8
8
|
# Ettore Atalan <atalanttore@googlemail.com>, 2022
|
9
9
|
# Wiederoder <stefanwiederoder@googlemail.com>, 2022
|
10
10
|
# Lukas Kallies <github.com@luke-web.de>, 2022
|
11
|
-
# Patrick Dolinic, 2022
|
12
|
-
# Crited <Alexander.Stoll@netways.de>, 2022
|
13
11
|
# Bryan Kearney <bryan.kearney@gmail.com>, 2023
|
14
12
|
#
|
15
13
|
msgid ""
|
16
14
|
msgstr ""
|
17
|
-
"Project-Id-Version: foreman_leapp 0.
|
15
|
+
"Project-Id-Version: foreman_leapp 2.0.0\n"
|
18
16
|
"Report-Msgid-Bugs-To: \n"
|
19
17
|
"PO-Revision-Date: 2022-10-12 12:00+0000\n"
|
20
18
|
"Last-Translator: Bryan Kearney <bryan.kearney@gmail.com>, 2023\n"
|
Binary file
|
data/locale/en/foreman_leapp.po
CHANGED
@@ -3,11 +3,12 @@
|
|
3
3
|
# This file is distributed under the same license as the foreman_leapp package.
|
4
4
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
5
5
|
#
|
6
|
+
#, fuzzy
|
6
7
|
msgid ""
|
7
8
|
msgstr ""
|
8
9
|
"Project-Id-Version: foreman_leapp 1.0.0\n"
|
9
10
|
"Report-Msgid-Bugs-To: \n"
|
10
|
-
"PO-Revision-Date:
|
11
|
+
"PO-Revision-Date: 2024-09-19 13:05+0200\n"
|
11
12
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
12
13
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
13
14
|
"Language: \n"
|
Binary file
|
data/locale/fr/foreman_leapp.po
CHANGED
@@ -4,17 +4,16 @@
|
|
4
4
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
5
5
|
#
|
6
6
|
# Translators:
|
7
|
+
# Bryan Kearney <bryan.kearney@gmail.com>, 2022
|
7
8
|
# Claer <transiblu@claer.hammock.fr>, 2022
|
8
9
|
# Pierre-Emmanuel Dutang <dutangp@gmail.com>, 2022
|
9
10
|
# 21966816214bc546c1fc8a185e75ca1c, 2022
|
10
|
-
# Bryan Kearney <bryan.kearney@gmail.com>, 2022
|
11
|
-
# Baptiste Agasse <baptiste.agasse@gmail.com>, 2022
|
12
11
|
# Amit Upadhye <aupadhye@redhat.com>, 2023
|
13
12
|
# Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2023
|
14
13
|
#
|
15
14
|
msgid ""
|
16
15
|
msgstr ""
|
17
|
-
"Project-Id-Version: foreman_leapp
|
16
|
+
"Project-Id-Version: foreman_leapp 2.0.0\n"
|
18
17
|
"Report-Msgid-Bugs-To: \n"
|
19
18
|
"PO-Revision-Date: 2022-10-12 12:00+0000\n"
|
20
19
|
"Last-Translator: Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarde"
|
Binary file
|
data/locale/ja/foreman_leapp.po
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
#
|
13
13
|
msgid ""
|
14
14
|
msgstr ""
|
15
|
-
"Project-Id-Version: foreman_leapp
|
15
|
+
"Project-Id-Version: foreman_leapp 2.0.0\n"
|
16
16
|
"Report-Msgid-Bugs-To: \n"
|
17
17
|
"PO-Revision-Date: 2022-10-12 12:00+0000\n"
|
18
18
|
"Last-Translator: Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarde"
|
Binary file
|
data/locale/ka/foreman_leapp.po
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
#
|
9
9
|
msgid ""
|
10
10
|
msgstr ""
|
11
|
-
"Project-Id-Version: foreman_leapp 0.
|
11
|
+
"Project-Id-Version: foreman_leapp 2.0.0\n"
|
12
12
|
"Report-Msgid-Bugs-To: \n"
|
13
13
|
"PO-Revision-Date: 2022-10-12 12:00+0000\n"
|
14
14
|
"Last-Translator: Temuri Doghonadze <temuri.doghonadze@gmail.com>, 2023\n"
|
@@ -29,10 +29,10 @@ msgid "Command"
|
|
29
29
|
msgstr "ბრძანება"
|
30
30
|
|
31
31
|
msgid "Could not retrieve data: %(status) - %(msg)"
|
32
|
-
msgstr ""
|
32
|
+
msgstr "მონაცემების მიღების შეცდომა: %(status) - %(msg)"
|
33
33
|
|
34
34
|
msgid "Failed to fetch preupgrade reports from server."
|
35
|
-
msgstr ""
|
35
|
+
msgstr "სერვერიდან განახლებისწინა ანგარიშების გამოთხოვის შეცდომა."
|
36
36
|
|
37
37
|
msgid "Fix Selected"
|
38
38
|
msgstr "არჩეული გასწორება"
|
@@ -41,7 +41,7 @@ msgid "Fix Type"
|
|
41
41
|
msgstr "გასწორების ტიპი"
|
42
42
|
|
43
43
|
msgid "Has Remediation"
|
44
|
-
msgstr ""
|
44
|
+
msgstr "აქვს აღდგენა"
|
45
45
|
|
46
46
|
msgid "Has Remediation?"
|
47
47
|
msgstr "აქვს გაუქმება?"
|
@@ -50,7 +50,7 @@ msgid "High"
|
|
50
50
|
msgstr "მაღალი"
|
51
51
|
|
52
52
|
msgid "High Risk Factor"
|
53
|
-
msgstr ""
|
53
|
+
msgstr "მაღალი რისკის ფაქტორი"
|
54
54
|
|
55
55
|
msgid "Hint"
|
56
56
|
msgstr "მინიშნება"
|
@@ -71,7 +71,7 @@ msgid "Leapp preupgrade report"
|
|
71
71
|
msgstr "Leapp-ის განახლებისწინა ანგარიში"
|
72
72
|
|
73
73
|
msgid "Links"
|
74
|
-
msgstr ""
|
74
|
+
msgstr "ბმულები"
|
75
75
|
|
76
76
|
msgid "List Preupgrade reports"
|
77
77
|
msgstr "განახლებისწინა ანგარიშების სია"
|
@@ -83,13 +83,13 @@ msgid "Low"
|
|
83
83
|
msgstr "დაბალი"
|
84
84
|
|
85
85
|
msgid "Low Risk Factor"
|
86
|
-
msgstr ""
|
86
|
+
msgstr "დაბალი რისკის ფაქტორი"
|
87
87
|
|
88
88
|
msgid "Medium"
|
89
89
|
msgstr "საშუალო"
|
90
90
|
|
91
91
|
msgid "Medium Risk Factor"
|
92
|
-
msgstr ""
|
92
|
+
msgstr "საშუალო რისკის ფაქტორი"
|
93
93
|
|
94
94
|
msgid "Missing one of the required permissions: view_hosts"
|
95
95
|
msgstr "აკლია ერთ-ერთი საჭირო ნებართვა: view_hosts"
|
@@ -125,7 +125,7 @@ msgid "Summary"
|
|
125
125
|
msgstr "შეჯამება"
|
126
126
|
|
127
127
|
msgid "Tags"
|
128
|
-
msgstr ""
|
128
|
+
msgstr "ჭდეები"
|
129
129
|
|
130
130
|
msgid "The preupgrade report could not be generated, check the job details for the reason"
|
131
131
|
msgstr "განახლებამდელი ანგარიშის შექმნის შეცდომა. მიზეზისთვის იხილეთ დავალების დეტალები"
|
Binary file
|
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
msgid ""
|
12
12
|
msgstr ""
|
13
|
-
"Project-Id-Version: foreman_leapp
|
13
|
+
"Project-Id-Version: foreman_leapp 2.0.0\n"
|
14
14
|
"Report-Msgid-Bugs-To: \n"
|
15
15
|
"PO-Revision-Date: 2022-10-12 12:00+0000\n"
|
16
16
|
"Last-Translator: Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarde"
|
@@ -16,8 +16,8 @@ module ForemanLeapp
|
|
16
16
|
|
17
17
|
test 'without remediation commands' do
|
18
18
|
empty_entry = FactoryBot.create(:preupgrade_report_entry, host: host, preupgrade_report: report,
|
19
|
-
|
20
|
-
|
19
|
+
detail: { remediations: [{ type: 'hint',
|
20
|
+
context: 'meh.' }] })
|
21
21
|
template = build_remediation_plan([empty_entry.id], host)
|
22
22
|
assert_equal template, ''
|
23
23
|
end
|
@@ -9,7 +9,7 @@ module ForemanLeapp
|
|
9
9
|
let(:host) { FactoryBot.create(:host) }
|
10
10
|
let(:job_template) do
|
11
11
|
FactoryBot.create(:job_template, template: 'echo "1"', job_category: 'leapp',
|
12
|
-
|
12
|
+
provider_type: 'SSH', name: 'Leapp preupgrade')
|
13
13
|
end
|
14
14
|
let(:job_invocation) { FactoryBot.create(:job_invocation) }
|
15
15
|
let(:template_invocation) do
|
@@ -4,11 +4,11 @@ require 'test_plugin_helper'
|
|
4
4
|
|
5
5
|
module Helpers
|
6
6
|
class JobHelperTest < ActionView::TestCase
|
7
|
-
let(:helper) { ::
|
7
|
+
let(:helper) { ::JobHelper }
|
8
8
|
|
9
9
|
let(:job_template) do
|
10
10
|
FactoryBot.create(:job_template, template: 'echo "1"', job_category: 'leapp',
|
11
|
-
|
11
|
+
provider_type: 'SSH', name: 'Leapp preupgrade')
|
12
12
|
end
|
13
13
|
let(:job_invocation) { FactoryBot.create(:job_invocation) }
|
14
14
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_leapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Foreman Leapp team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foreman_remote_execution
|
@@ -73,7 +73,7 @@ files:
|
|
73
73
|
- app/controllers/preupgrade_reports_controller.rb
|
74
74
|
- app/helpers/foreman_leapp/hosts_helper.rb
|
75
75
|
- app/helpers/foreman_leapp/template_helper.rb
|
76
|
-
- app/lib/actions/preupgrade_job.rb
|
76
|
+
- app/lib/actions/foreman_leapp/preupgrade_job.rb
|
77
77
|
- app/lib/helpers/job_helper.rb
|
78
78
|
- app/models/concerns/foreman_leapp/job_invocation_extensions.rb
|
79
79
|
- app/models/preupgrade_report.rb
|
@@ -104,35 +104,19 @@ files:
|
|
104
104
|
- lib/tasks/foreman_leapp_tasks.rake
|
105
105
|
- locale/Makefile
|
106
106
|
- locale/de/LC_MESSAGES/foreman_leapp.mo
|
107
|
-
- locale/de/foreman_leapp.edit.po
|
108
107
|
- locale/de/foreman_leapp.po
|
109
|
-
- locale/de/foreman_leapp.po.time_stamp
|
110
108
|
- locale/en/LC_MESSAGES/foreman_leapp.mo
|
111
|
-
- locale/en/foreman_leapp.edit.po
|
112
109
|
- locale/en/foreman_leapp.po
|
113
|
-
- locale/en/foreman_leapp.po.time_stamp
|
114
110
|
- locale/foreman_leapp.pot
|
115
111
|
- locale/fr/LC_MESSAGES/foreman_leapp.mo
|
116
|
-
- locale/fr/foreman_leapp.edit.po
|
117
112
|
- locale/fr/foreman_leapp.po
|
118
|
-
- locale/fr/foreman_leapp.po.time_stamp
|
119
113
|
- locale/gemspec.rb
|
120
114
|
- locale/ja/LC_MESSAGES/foreman_leapp.mo
|
121
|
-
- locale/ja/foreman_leapp.edit.po
|
122
115
|
- locale/ja/foreman_leapp.po
|
123
|
-
- locale/ja/foreman_leapp.po.time_stamp
|
124
116
|
- locale/ka/LC_MESSAGES/foreman_leapp.mo
|
125
|
-
- locale/ka/foreman_leapp.edit.po
|
126
117
|
- locale/ka/foreman_leapp.po
|
127
|
-
- locale/ka/foreman_leapp.po.time_stamp
|
128
|
-
- locale/pt_BR/foreman_leapp.edit.po
|
129
|
-
- locale/pt_BR/foreman_leapp.po.time_stamp
|
130
118
|
- locale/zh_CN/LC_MESSAGES/foreman_leapp.mo
|
131
|
-
- locale/zh_CN/foreman_leapp.edit.po
|
132
119
|
- locale/zh_CN/foreman_leapp.po
|
133
|
-
- locale/zh_CN/foreman_leapp.po.time_stamp
|
134
|
-
- locale/zh_TW/foreman_leapp.edit.po
|
135
|
-
- locale/zh_TW/foreman_leapp.po.time_stamp
|
136
120
|
- package.json
|
137
121
|
- test/factories/foreman_leapp_factories.rb
|
138
122
|
- test/functional/api/v2/preupgrade_reports_controller_test.rb
|