foreman_scc_manager 5.0.4 → 5.1.0
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 +4 -4
- data/README.md +2 -1
- data/app/assets/javascripts/foreman_scc_manager/locale/de/foreman_scc_manager.js +55 -256
- data/app/assets/javascripts/foreman_scc_manager/locale/el/foreman_scc_manager.js +43 -244
- data/app/assets/javascripts/foreman_scc_manager/locale/en/foreman_scc_manager.js +381 -2
- data/app/assets/javascripts/foreman_scc_manager/locale/fr/foreman_scc_manager.js +58 -259
- data/app/assets/javascripts/foreman_scc_manager/locale/ja/foreman_scc_manager.js +58 -259
- data/app/assets/javascripts/foreman_scc_manager/locale/ka/foreman_scc_manager.js +58 -259
- data/app/assets/javascripts/foreman_scc_manager/locale/ko/foreman_scc_manager.js +55 -256
- data/app/assets/javascripts/foreman_scc_manager/locale/zh_CN/foreman_scc_manager.js +58 -259
- data/app/controllers/api/v2/scc_accounts_controller.rb +4 -2
- data/app/models/scc_account.rb +1 -1
- data/app/views/scc_accounts/edit.html.erb +24 -2
- data/app/views/scc_accounts/new.html.erb +12 -1
- data/lib/foreman_scc_manager/version.rb +1 -1
- data/locale/de/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/de/foreman_scc_manager.po +55 -257
- data/locale/el/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/el/foreman_scc_manager.po +44 -246
- data/locale/en/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/en/foreman_scc_manager.po +392 -0
- data/locale/foreman_scc_manager.pot +195 -461
- data/locale/fr/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/fr/foreman_scc_manager.po +58 -260
- data/locale/ja/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/ja/foreman_scc_manager.po +58 -260
- data/locale/ka/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/ka/foreman_scc_manager.po +58 -260
- data/locale/ko/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/ko/foreman_scc_manager.po +55 -257
- data/locale/zh_CN/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/zh_CN/foreman_scc_manager.po +58 -260
- data/test/controllers/api/v2/scc_accounts_test.rb +5 -5
- data/webpack/components/SCCAccountForm/SCCAccountForm.scss +49 -0
- data/webpack/components/SCCAccountForm/SCCAccountFormActions.js +74 -0
- data/webpack/components/SCCAccountForm/components/DateTimeField.js +72 -0
- data/webpack/components/SCCAccountForm/components/SCCCredentialsCard.js +150 -0
- data/webpack/components/SCCAccountForm/components/SCCSyncSettingsCard.js +256 -0
- data/webpack/components/SCCAccountForm/components/SCCTokenRefreshCard.js +133 -0
- data/webpack/components/SCCAccountForm/index.js +306 -0
- data/webpack/index.js +6 -0
- metadata +9 -18
- data/app/assets/javascripts/foreman_scc_manager/scc_accounts.js.coffee +0 -46
- data/app/views/scc_accounts/_form.html.erb +0 -51
@@ -3,7 +3,7 @@
|
|
3
3
|
"locale_data": {
|
4
4
|
"foreman_scc_manager": {
|
5
5
|
"": {
|
6
|
-
"Project-Id-Version": "foreman_scc_manager
|
6
|
+
"Project-Id-Version": "foreman_scc_manager 5.0.4",
|
7
7
|
"Report-Msgid-Bugs-To": "",
|
8
8
|
"PO-Revision-Date": "2019-10-17 13:28+0000",
|
9
9
|
"Last-Translator": "Amit Upadhye <aupadhye@redhat.com>, 2022",
|
@@ -32,15 +32,6 @@
|
|
32
32
|
"%s/%s": [
|
33
33
|
""
|
34
34
|
],
|
35
|
-
"Abstract": [
|
36
|
-
"摘要"
|
37
|
-
],
|
38
|
-
"Abstract async task": [
|
39
|
-
"抽象 async 任务"
|
40
|
-
],
|
41
|
-
"Action with sub plans": [
|
42
|
-
"有子计划的操作"
|
43
|
-
],
|
44
35
|
"Actions": [
|
45
36
|
"操作"
|
46
37
|
],
|
@@ -59,63 +50,36 @@
|
|
59
50
|
"Additive": [
|
60
51
|
"Additive"
|
61
52
|
],
|
62
|
-
"Agent action": [
|
63
|
-
"代理操作"
|
64
|
-
],
|
65
53
|
"Associated GPG key of scc_account": [
|
66
54
|
"scc_account 的关联 GPG 密钥"
|
67
55
|
],
|
68
|
-
"Attach subscriptions": [
|
69
|
-
"附加订阅"
|
70
|
-
],
|
71
|
-
"Auto attach subscriptions": [
|
72
|
-
"自动附加订阅"
|
73
|
-
],
|
74
56
|
"Base URL": [
|
75
57
|
"基本 URL"
|
76
58
|
],
|
77
|
-
"Bulk generate applicability for hosts": [
|
78
|
-
"批量生成主机的适用性"
|
79
|
-
],
|
80
59
|
"Bulk subscription of scc_products for scc_account": [
|
81
60
|
"scc_account 的批量 scc_products 订阅"
|
82
61
|
],
|
83
62
|
"Bulk subscription of scc_products with individual repository selection for scc_account.": [
|
84
63
|
""
|
85
64
|
],
|
65
|
+
"Cancel": [
|
66
|
+
""
|
67
|
+
],
|
86
68
|
"Collapse products": [
|
87
69
|
""
|
88
70
|
],
|
89
71
|
"Collapse/Expand": [
|
90
72
|
""
|
91
73
|
],
|
92
|
-
"
|
93
|
-
"
|
74
|
+
"Connection OK": [
|
75
|
+
""
|
76
|
+
],
|
77
|
+
"Connection test failed.": [
|
78
|
+
""
|
94
79
|
],
|
95
80
|
"Content Only": [
|
96
81
|
"只包括内容"
|
97
82
|
],
|
98
|
-
"Copy version units to library": [
|
99
|
-
"将版本单位复制到库"
|
100
|
-
],
|
101
|
-
"Create": [
|
102
|
-
"创建"
|
103
|
-
],
|
104
|
-
"Create Alternate Content Source": [
|
105
|
-
"创建备用内容源"
|
106
|
-
],
|
107
|
-
"Create Export History": [
|
108
|
-
"创建导出历史记录"
|
109
|
-
],
|
110
|
-
"Create Import History": [
|
111
|
-
"创建导入历史记录"
|
112
|
-
],
|
113
|
-
"Create Package Group": [
|
114
|
-
"创建软件包组"
|
115
|
-
],
|
116
|
-
"Create Syncable Export History": [
|
117
|
-
"创建可同步的导出历史记录"
|
118
|
-
],
|
119
83
|
"Create an scc_account": [
|
120
84
|
"创建 scc_account"
|
121
85
|
],
|
@@ -125,86 +89,38 @@
|
|
125
89
|
"Date and time relative to which the sync interval is run": [
|
126
90
|
"运行同步间隔的日期和时间"
|
127
91
|
],
|
128
|
-
"Delete": [
|
129
|
-
"刪除"
|
130
|
-
],
|
131
|
-
"Delete Activation Key": [
|
132
|
-
"删除激活码"
|
133
|
-
],
|
134
|
-
"Delete Lifecycle Environment": [
|
135
|
-
"删除生命周期环境"
|
136
|
-
],
|
137
|
-
"Delete Package Group": [
|
138
|
-
"删除软件包组"
|
139
|
-
],
|
140
|
-
"Delete Product": [
|
141
|
-
"删除产品"
|
142
|
-
],
|
143
92
|
"Delete scc_account": [
|
144
93
|
"删除 scc_account"
|
145
94
|
],
|
146
|
-
"Destroy": [
|
147
|
-
"销毁"
|
148
|
-
],
|
149
|
-
"Destroy Alternate Content Source": [
|
150
|
-
"销毁备用内容源"
|
151
|
-
],
|
152
|
-
"Destroy Content Host": [
|
153
|
-
"销毁内容主机"
|
154
|
-
],
|
155
|
-
"Disable": [
|
156
|
-
"禁用"
|
157
|
-
],
|
158
|
-
"Discover": [
|
159
|
-
"发现"
|
160
|
-
],
|
161
95
|
"Download Policy": [
|
162
96
|
"下载政策"
|
163
97
|
],
|
164
98
|
"Edit %s": [
|
165
99
|
"编辑 %s"
|
166
100
|
],
|
167
|
-
"Enable": [
|
168
|
-
"启用"
|
169
|
-
],
|
170
|
-
"Errata mail": [
|
171
|
-
"勘误邮件"
|
172
|
-
],
|
173
101
|
"Expand products": [
|
174
102
|
""
|
175
103
|
],
|
176
|
-
"Export": [
|
177
|
-
"导出"
|
178
|
-
],
|
179
|
-
"Export Library": [
|
180
|
-
"导出库"
|
181
|
-
],
|
182
|
-
"Export Repository": [
|
183
|
-
"导出仓库"
|
184
|
-
],
|
185
104
|
"Failed to add task to queue.": [
|
186
105
|
""
|
187
106
|
],
|
188
107
|
"Failed to add task to queue: %s": [
|
189
108
|
"向队列添加任务失败:%s"
|
190
109
|
],
|
191
|
-
"
|
192
|
-
"
|
110
|
+
"Failed to create SCC account.": [
|
111
|
+
""
|
193
112
|
],
|
194
|
-
"
|
113
|
+
"Failed to update SCC account.": [
|
195
114
|
""
|
196
115
|
],
|
197
|
-
"
|
198
|
-
"
|
116
|
+
"Filter repositories": [
|
117
|
+
""
|
199
118
|
],
|
200
119
|
"Foreman plugin to sync SUSE Customer Center products and repositories into Katello.": [
|
201
120
|
"Foreman 插件,将 SUSE 客户中心产品和存储库同步到 Katello。"
|
202
121
|
],
|
203
|
-
"
|
204
|
-
"
|
205
|
-
],
|
206
|
-
"Generate repository applicability": [
|
207
|
-
"生成仓库适用性"
|
122
|
+
"GPG key for SUSE products": [
|
123
|
+
""
|
208
124
|
],
|
209
125
|
"Go to Product page": [
|
210
126
|
""
|
@@ -212,11 +128,8 @@
|
|
212
128
|
"Go to Repository page": [
|
213
129
|
""
|
214
130
|
],
|
215
|
-
"
|
216
|
-
"
|
217
|
-
],
|
218
|
-
"Hypervisors update": [
|
219
|
-
"Hypervisor 更新"
|
131
|
+
"HH:MM AM": [
|
132
|
+
""
|
220
133
|
],
|
221
134
|
"If this option is enabled, debug and source pool repositories are automatically selected if you select a product. This option is disabled by default. It applies for unselected products, only. Already selected products are not filtered.": [
|
222
135
|
""
|
@@ -224,51 +137,9 @@
|
|
224
137
|
"Immediate": [
|
225
138
|
"立即"
|
226
139
|
],
|
227
|
-
"Import": [
|
228
|
-
"导入"
|
229
|
-
],
|
230
|
-
"Import Content View Version": [
|
231
|
-
"导入内容视图版本"
|
232
|
-
],
|
233
|
-
"Import Default Content View": [
|
234
|
-
"导入默认内容视图"
|
235
|
-
],
|
236
|
-
"Import Puppet classes": [
|
237
|
-
"导入 Puppet 类"
|
238
|
-
],
|
239
|
-
"Import Repository": [
|
240
|
-
"导入仓库"
|
241
|
-
],
|
242
|
-
"Import facts": [
|
243
|
-
"导入事实"
|
244
|
-
],
|
245
140
|
"Include Debug and Source Pool repositories": [
|
246
141
|
""
|
247
142
|
],
|
248
|
-
"Incremental Update": [
|
249
|
-
"增量更新"
|
250
|
-
],
|
251
|
-
"Incremental Update of Content View Version(s) ": [
|
252
|
-
"内容视图版本的增量更新"
|
253
|
-
],
|
254
|
-
"Index content": [
|
255
|
-
"索引內容"
|
256
|
-
],
|
257
|
-
"Index errata": [
|
258
|
-
"索引勘误"
|
259
|
-
],
|
260
|
-
"Index module streams": [
|
261
|
-
"索引模块流"
|
262
|
-
],
|
263
|
-
"Index package groups": [
|
264
|
-
"索引软件包组"
|
265
|
-
],
|
266
|
-
"Install Applicable Errata": [
|
267
|
-
"安装适用的勘误"
|
268
|
-
],
|
269
|
-
"Instance update": [
|
270
|
-
"实例更新"
|
271
|
-
],
|
272
143
|
"Interval cannot be nil": [
|
273
144
|
"间隔不能为零"
|
274
145
|
],
|
@@ -290,26 +161,29 @@
|
|
290
161
|
"Lock on SCC account already taken: %s": [
|
291
162
|
"锁定 SCC 帐户已采用:%s"
|
292
163
|
],
|
164
|
+
"Login": [
|
165
|
+
""
|
166
|
+
],
|
293
167
|
"Login id of scc_account": [
|
294
168
|
"scc_account 的登录 ID"
|
295
169
|
],
|
296
170
|
"Mirroring Policy": [
|
297
171
|
"镜像策略"
|
298
172
|
],
|
173
|
+
"Name": [
|
174
|
+
""
|
175
|
+
],
|
299
176
|
"Name of the scc_account": [
|
300
177
|
"scc_account 的名称"
|
301
178
|
],
|
302
|
-
"No products selected.": [
|
303
|
-
"没有选择产品."
|
304
|
-
],
|
305
179
|
"None": [
|
306
180
|
"没有"
|
307
181
|
],
|
308
182
|
"On Demand": [
|
309
183
|
"按需"
|
310
184
|
],
|
311
|
-
"
|
312
|
-
"
|
185
|
+
"Password": [
|
186
|
+
""
|
313
187
|
],
|
314
188
|
"Password of scc_account": [
|
315
189
|
"scc_account 的密码"
|
@@ -320,69 +194,42 @@
|
|
320
194
|
"Please synchronize your SUSE account before you can subscribe to SUSE products.": [
|
321
195
|
""
|
322
196
|
],
|
323
|
-
"Product Create": [
|
324
|
-
"产品创建"
|
325
|
-
],
|
326
197
|
"Product Selection for Account %s": [
|
327
198
|
"为帐户 %s 选择产品"
|
328
199
|
],
|
329
200
|
"Products": [
|
330
201
|
"产品"
|
331
202
|
],
|
332
|
-
"
|
333
|
-
"
|
334
|
-
],
|
335
|
-
"Promotion to Environment": [
|
336
|
-
"升级到环境"
|
337
|
-
],
|
338
|
-
"Publish": [
|
339
|
-
"发布"
|
340
|
-
],
|
341
|
-
"Publish Lifecycle Environment Repositories": [
|
342
|
-
"发布生命周期环境仓库"
|
343
|
-
],
|
344
|
-
"Refresh Alternate Content Source": [
|
345
|
-
"刷新备用内容源"
|
346
|
-
],
|
347
|
-
"Reindex subscriptions": [
|
348
|
-
"重新索引订阅"
|
349
|
-
],
|
350
|
-
"Remove Content": [
|
351
|
-
"删除内容"
|
352
|
-
],
|
353
|
-
"Remove Version": [
|
354
|
-
"移除版本"
|
355
|
-
],
|
356
|
-
"Remove Versions and Associations": [
|
357
|
-
"删除版本和关联"
|
358
|
-
],
|
359
|
-
"Remove from Environment": [
|
360
|
-
"从环境中移除"
|
203
|
+
"Refresh interval": [
|
204
|
+
""
|
361
205
|
],
|
362
|
-
"
|
363
|
-
"
|
206
|
+
"Refresh time": [
|
207
|
+
""
|
364
208
|
],
|
365
209
|
"Repositories (%s/%s)": [
|
366
210
|
""
|
367
211
|
],
|
368
|
-
"Repository
|
212
|
+
"Repository Sync Settings": [
|
369
213
|
""
|
370
214
|
],
|
371
|
-
"
|
372
|
-
"
|
215
|
+
"Repository not imported": [
|
216
|
+
""
|
373
217
|
],
|
374
218
|
"Reset Selection": [
|
375
219
|
""
|
376
220
|
],
|
377
|
-
"
|
378
|
-
"
|
221
|
+
"SCC Account Credentials": [
|
222
|
+
""
|
223
|
+
],
|
224
|
+
"SCC account created successfully.": [
|
225
|
+
""
|
226
|
+
],
|
227
|
+
"SCC account updated successfully.": [
|
228
|
+
""
|
379
229
|
],
|
380
230
|
"SUSE Customer Center": [
|
381
231
|
"SUSE 客户中心"
|
382
232
|
],
|
383
|
-
"SUSE Customer Center account": [
|
384
|
-
"SUSE 客户中心帐户"
|
385
|
-
],
|
386
233
|
"SUSE Subscription": [
|
387
234
|
"SUSE 订阅"
|
388
235
|
],
|
@@ -434,9 +281,15 @@
|
|
434
281
|
"Show/Hide unsubscribed": [
|
435
282
|
""
|
436
283
|
],
|
284
|
+
"Specifies the daily time when the SCC authentication token refresh process starts. Set this to a time outside of business hours (e.g., during the night) to minimize disruption.": [
|
285
|
+
""
|
286
|
+
],
|
437
287
|
"Starting the subscription task failed.": [
|
438
288
|
""
|
439
289
|
],
|
290
|
+
"Submit": [
|
291
|
+
""
|
292
|
+
],
|
440
293
|
"Subscribe SCC Product": [
|
441
294
|
"订阅 SCC 产品"
|
442
295
|
],
|
@@ -449,9 +302,6 @@
|
|
449
302
|
"Sync": [
|
450
303
|
"同步"
|
451
304
|
],
|
452
|
-
"Sync Date": [
|
453
|
-
"同步日期"
|
454
|
-
],
|
455
305
|
"Sync SUSE subscriptions": [
|
456
306
|
"同步 SUSE 订阅"
|
457
307
|
],
|
@@ -461,33 +311,15 @@
|
|
461
311
|
"Sync SUSE subscriptions (Repositories)": [
|
462
312
|
"同步 SUSE 订阅(仓库)"
|
463
313
|
],
|
464
|
-
"Sync capsule": [
|
465
|
-
"同步 capsule"
|
466
|
-
],
|
467
|
-
"Sync interval": [
|
468
|
-
"同步间隔"
|
469
|
-
],
|
470
314
|
"Sync scc_account": [
|
471
315
|
"同步 scc_account"
|
472
316
|
],
|
473
317
|
"Sync task started.": [
|
474
318
|
"同步任务已启动。"
|
475
319
|
],
|
476
|
-
"Syncable export": [
|
477
|
-
"可同步导出"
|
478
|
-
],
|
479
|
-
"Synchronize": [
|
480
|
-
"同步"
|
481
|
-
],
|
482
320
|
"Synchronize SUSE Account": [
|
483
321
|
""
|
484
322
|
],
|
485
|
-
"Synchronize smart proxy": [
|
486
|
-
"同步智能代理服务器"
|
487
|
-
],
|
488
|
-
"Task to subscribe products started.": [
|
489
|
-
"订阅产品的任务已开始。"
|
490
|
-
],
|
491
323
|
"Test Connection": [
|
492
324
|
"测试连接"
|
493
325
|
],
|
@@ -512,8 +344,11 @@
|
|
512
344
|
"The subscription task with id ": [
|
513
345
|
""
|
514
346
|
],
|
515
|
-
"The
|
516
|
-
"
|
347
|
+
"The token refresh interval is used to periodically update the SCC authentication tokens of any imported products.": [
|
348
|
+
""
|
349
|
+
],
|
350
|
+
"Token Refresh Settings": [
|
351
|
+
""
|
517
352
|
],
|
518
353
|
"URL of SUSE for scc_account": [
|
519
354
|
"scc_account 的 SUSE URL"
|
@@ -521,71 +356,35 @@
|
|
521
356
|
"Unknown": [
|
522
357
|
"未知"
|
523
358
|
],
|
524
|
-
"Update": [
|
525
|
-
"更新"
|
526
|
-
],
|
527
|
-
"Update Alternate Content Source": [
|
528
|
-
"更新备用内容源"
|
529
|
-
],
|
530
|
-
"Update CDN Configuration": [
|
531
|
-
"更新 CDN 配置"
|
532
|
-
],
|
533
|
-
"Update Content Overrides": [
|
534
|
-
"更新内容覆盖"
|
535
|
-
],
|
536
359
|
"Update SUSE repositories": [
|
537
360
|
"创建 SUSE 仓库"
|
538
361
|
],
|
539
362
|
"Update SUSE repositories %s": [
|
540
363
|
"更新 SUSE 仓库 %s"
|
541
364
|
],
|
542
|
-
"Update content urls": [
|
543
|
-
"更新内容 url"
|
544
|
-
],
|
545
|
-
"Update for host": [
|
546
|
-
"对主机的更新"
|
547
|
-
],
|
548
|
-
"Update http proxy": [
|
549
|
-
"更新 HTTP 代理"
|
550
|
-
],
|
551
|
-
"Update http proxy details": [
|
552
|
-
"更新 http 代理详情"
|
553
|
-
],
|
554
|
-
"Update redhat repository": [
|
555
|
-
"更新 redhat 仓库"
|
556
|
-
],
|
557
|
-
"Update release version for host": [
|
558
|
-
"为主机更新发行版本"
|
559
|
-
],
|
560
365
|
"Update scc_account": [
|
561
366
|
"更新 scc_account"
|
562
367
|
],
|
563
|
-
"Updating System Purpose for host": [
|
564
|
-
"主机更新系统目的"
|
565
|
-
],
|
566
|
-
"Upload into": [
|
567
|
-
"上传到"
|
568
|
-
],
|
569
|
-
"Use GPG key for SUSE products": [
|
570
|
-
"将 GPG 密钥用于 SUSE 产品"
|
571
|
-
],
|
572
368
|
"Use this setting if you want to automatically add a GPG key to your SUSE products upon subscription. You can change this setting in the 'Content' > 'Products' menu, later.": [
|
573
369
|
"如果要在订阅时自动在 SUSE 产品中添加 GPG 密钥,请使用这个设置。稍后,您可以在 'Content' > 'Products' 菜单中更改此设置。"
|
574
370
|
],
|
575
371
|
"Use your 'Organization credentials' obtained from the SUSE Customer Center.": [
|
576
372
|
"使用从 SUSE 客户中心获取的\\\"组织凭据\\\"。"
|
577
373
|
],
|
578
|
-
"Verify checksum": [
|
579
|
-
"验证校验和"
|
580
|
-
],
|
581
374
|
"WARNING: If you want to switch SCC accounts and retain the synchronized content, DO NOT delete your old SCC account, even if it is expired. Please change the login and password of your SCC account, instead.\\n\\nIf you delete your old SCC account, you CANNOT reuse existing repositories, products, content views, and composite content views.\\n\\nReally delete SCC account %s?": [
|
582
375
|
""
|
583
376
|
],
|
377
|
+
"YYYY-MM-DD": [
|
378
|
+
""
|
379
|
+
],
|
584
380
|
"You currently have no SUSE products selected. Search and add SUSE products in the section below.": [
|
585
381
|
""
|
586
382
|
],
|
587
383
|
"never synced": [
|
588
384
|
"从未同步"
|
385
|
+
],
|
386
|
+
"no results": [
|
387
|
+
""
|
589
388
|
]
|
590
389
|
}
|
591
390
|
}
|
@@ -61,10 +61,12 @@ module Api
|
|
61
61
|
param_group :scc_account
|
62
62
|
def update
|
63
63
|
if params[:scc_account].present?
|
64
|
-
process_response @scc_account.
|
64
|
+
process_response @scc_account.update_attributes_with_logic!(scc_account_params)
|
65
65
|
else
|
66
|
-
render json: { error: 'No input data provided for changing the SCC account.', status: :expectation_failed
|
66
|
+
render json: { error: 'No input data provided for changing the SCC account.' }, status: :expectation_failed
|
67
67
|
end
|
68
|
+
rescue ActiveRecord::RecordInvalid => e
|
69
|
+
render json: { error: e.to_s }, status: :unprocessable_entity
|
68
70
|
end
|
69
71
|
|
70
72
|
api :DELETE, '/scc_accounts/:id', N_('Delete scc_account')
|
data/app/models/scc_account.rb
CHANGED
@@ -305,7 +305,7 @@ class SccAccount < ApplicationRecord
|
|
305
305
|
::Katello::RootRepository::MIRRORING_POLICY_CONTENT => _('Content Only'),
|
306
306
|
}
|
307
307
|
|
308
|
-
|
308
|
+
SCC_MIRRORING_POLICIES.map do |p|
|
309
309
|
[names.fetch(p, p), p]
|
310
310
|
end
|
311
311
|
end
|
@@ -1,3 +1,25 @@
|
|
1
|
-
<% title(_("Edit %s") % @scc_account) %>
|
1
|
+
<% title (_("Edit %s") % @scc_account) %>
|
2
2
|
|
3
|
-
<%=
|
3
|
+
<%= webpacked_plugins_js_for :foreman_scc_manager %>
|
4
|
+
<%= webpacked_plugins_css_for :foreman_scc_manager %>
|
5
|
+
|
6
|
+
<%= react_component('SCCAccountForm', {
|
7
|
+
organizationId: @scc_account.organization_id,
|
8
|
+
intervalOptions: SccAccount::TYPES,
|
9
|
+
downloadPolicyOptions: SccAccount::download_policy_selection_values,
|
10
|
+
mirroringPolicyOptions: SccAccount::mirroring_policy_selection_values,
|
11
|
+
gpgKeyOptions: @selectable_gpg_keys,
|
12
|
+
selectedGpgKeyId: @scc_account.katello_gpg_key_id,
|
13
|
+
initial: {
|
14
|
+
id: @scc_account.id,
|
15
|
+
name: @scc_account.name,
|
16
|
+
login: @scc_account.login,
|
17
|
+
baseUrl: @scc_account.base_url,
|
18
|
+
interval: @scc_account.interval,
|
19
|
+
downloadPolicy: (SccAccount::download_policy_selection_values.detect{|l,v| v==@scc_account.download_policy}&.first),
|
20
|
+
mirroringPolicy: (SccAccount::mirroring_policy_selection_values.detect{|l,v| v==@scc_account.mirroring_policy}&.first),
|
21
|
+
gpgKey: (@selectable_gpg_keys.detect{|l,v| v==@scc_account.katello_gpg_key_id}&.first),
|
22
|
+
refreshDate: (@scc_account.sync_date&.to_date&.iso8601),
|
23
|
+
refreshTime: (@scc_account.sync_date&.in_time_zone&.strftime("%I:%M %p"))
|
24
|
+
}
|
25
|
+
}) %>
|
@@ -1,3 +1,14 @@
|
|
1
1
|
<% title _("Add SUSE Customer Center Account") %>
|
2
2
|
|
3
|
-
<%=
|
3
|
+
<%= webpacked_plugins_js_for :foreman_scc_manager %>
|
4
|
+
<%= webpacked_plugins_css_for :foreman_scc_manager %>
|
5
|
+
|
6
|
+
<%= react_component('SCCAccountForm', {
|
7
|
+
organizationId: @scc_account.organization_id,
|
8
|
+
intervalOptions: SccAccount::TYPES,
|
9
|
+
downloadPolicyOptions: SccAccount::download_policy_selection_values,
|
10
|
+
mirroringPolicyOptions: SccAccount::mirroring_policy_selection_values,
|
11
|
+
gpgKeyOptions: @selectable_gpg_keys,
|
12
|
+
selectedGpgKeyId: @scc_account.katello_gpg_key_id
|
13
|
+
}) %>
|
14
|
+
|
Binary file
|