foreman_discovery 17.0.0 → 17.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,11 +5,11 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_discovery 16.3.4\n"
8
+ "Project-Id-Version: foreman_discovery 17.1.0\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2021-05-03 08:46+0200\n"
11
- "PO-Revision-Date: 2021-01-25 08:35+0000\n"
12
- "Last-Translator: Transifex Bot <>\n"
10
+ "POT-Creation-Date: 2021-09-20 17:25+0200\n"
11
+ "PO-Revision-Date: 2021-05-03 08:29+0000\n"
12
+ "Last-Translator: 0868a4d1af5275b3f70b0a6dac4c99a4\n"
13
13
  "Language-Team: Chinese (Taiwan) (http://www.transifex.com/foreman/foreman/lang"
14
14
  "uage/zh_TW/)\n"
15
15
  "MIME-Version: 1.0\n"
@@ -118,7 +118,7 @@ msgstr ""
118
118
  msgid "Execute rules against a discovered host"
119
119
  msgstr ""
120
120
 
121
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:157
121
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:160
122
122
  msgid "Host %{host} was provisioned with rule %{rule}"
123
123
  msgstr ""
124
124
 
@@ -126,7 +126,7 @@ msgstr ""
126
126
  msgid "Unable to provision %{host}: %{errors}"
127
127
  msgstr ""
128
128
 
129
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:164
129
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:167
130
130
  msgid "No rule found for host %s"
131
131
  msgstr ""
132
132
 
@@ -134,11 +134,11 @@ msgstr ""
134
134
  msgid "Execute rules against all currently discovered hosts"
135
135
  msgstr ""
136
136
 
137
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:170
137
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:173
138
138
  msgid "Errors during auto provisioning: %s"
139
139
  msgstr ""
140
140
 
141
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:173
141
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:176
142
142
  msgid "No discovered hosts to provision"
143
143
  msgstr ""
144
144
 
@@ -158,7 +158,7 @@ msgstr ""
158
158
  msgid "Rebooting all discovered hosts"
159
159
  msgstr ""
160
160
 
161
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:126
161
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:129
162
162
  msgid "Discovered hosts are rebooting now"
163
163
  msgstr ""
164
164
 
@@ -238,75 +238,75 @@ msgstr ""
238
238
  msgid "No discovered hosts to reboot"
239
239
  msgstr ""
240
240
 
241
- #: ../app/controllers/discovered_hosts_controller.rb:60
241
+ #: ../app/controllers/discovered_hosts_controller.rb:63
242
242
  msgid "Successfully provisioned %s"
243
243
  msgstr ""
244
244
 
245
- #: ../app/controllers/discovered_hosts_controller.rb:94
245
+ #: ../app/controllers/discovered_hosts_controller.rb:97
246
246
  msgid "Facts refreshed for %s"
247
247
  msgstr "%s 的詳情已刷新"
248
248
 
249
- #: ../app/controllers/discovered_hosts_controller.rb:96
249
+ #: ../app/controllers/discovered_hosts_controller.rb:99
250
250
  msgid "Failed to refresh facts for %s"
251
251
  msgstr "刷新 %s 的詳情失敗"
252
252
 
253
- #: ../app/controllers/discovered_hosts_controller.rb:99
253
+ #: ../app/controllers/discovered_hosts_controller.rb:102
254
254
  msgid "Failed to refresh facts for %{hostname} with error %{error_message}"
255
255
  msgstr ""
256
256
 
257
- #: ../app/controllers/discovered_hosts_controller.rb:106
257
+ #: ../app/controllers/discovered_hosts_controller.rb:109
258
258
  msgid "Host of type %s can not be rebooted"
259
259
  msgstr ""
260
260
 
261
- #: ../app/controllers/discovered_hosts_controller.rb:110
261
+ #: ../app/controllers/discovered_hosts_controller.rb:113
262
262
  msgid "Rebooting host %s"
263
263
  msgstr ""
264
264
 
265
- #: ../app/controllers/discovered_hosts_controller.rb:112
265
+ #: ../app/controllers/discovered_hosts_controller.rb:115
266
266
  msgid "Failed to reboot host %s"
267
267
  msgstr ""
268
268
 
269
- #: ../app/controllers/discovered_hosts_controller.rb:115
269
+ #: ../app/controllers/discovered_hosts_controller.rb:118
270
270
  msgid "Failed to reboot host %{hostname} with error %{error_message}"
271
271
  msgstr ""
272
272
 
273
- #: ../app/controllers/discovered_hosts_controller.rb:129
273
+ #: ../app/controllers/discovered_hosts_controller.rb:132
274
274
  msgid "Failed to reboot hosts with error %s"
275
275
  msgstr ""
276
276
 
277
- #: ../app/controllers/discovered_hosts_controller.rb:147
277
+ #: ../app/controllers/discovered_hosts_controller.rb:150
278
278
  msgid "Destroyed selected hosts"
279
279
  msgstr "刪除選擇的主機"
280
280
 
281
- #: ../app/controllers/discovered_hosts_controller.rb:149
281
+ #: ../app/controllers/discovered_hosts_controller.rb:152
282
282
  msgid "The following hosts were not deleted: %s"
283
283
  msgstr "下列主機尚未刪除:%s"
284
284
 
285
- #: ../app/controllers/discovered_hosts_controller.rb:161
285
+ #: ../app/controllers/discovered_hosts_controller.rb:164
286
286
  msgid "Failed to auto provision host %s: %s"
287
287
  msgstr ""
288
288
 
289
- #: ../app/controllers/discovered_hosts_controller.rb:189
289
+ #: ../app/controllers/discovered_hosts_controller.rb:192
290
290
  msgid "Discovered hosts are provisioning now"
291
291
  msgstr ""
292
292
 
293
- #: ../app/controllers/discovered_hosts_controller.rb:270
293
+ #: ../app/controllers/discovered_hosts_controller.rb:277
294
294
  msgid "Discovered host reported from unknown subnet, communication will not be proxied."
295
295
  msgstr ""
296
296
 
297
- #: ../app/controllers/discovered_hosts_controller.rb:275
297
+ #: ../app/controllers/discovered_hosts_controller.rb:282
298
298
  msgid "Discovered hosts reported from unknown subnet are %s, communication will not be proxied."
299
299
  msgstr ""
300
300
 
301
- #: ../app/controllers/discovered_hosts_controller.rb:289
301
+ #: ../app/controllers/discovered_hosts_controller.rb:296
302
302
  msgid "No hosts were found with that id or name"
303
303
  msgstr "沒有找到擁有此 ID 或名稱的主機"
304
304
 
305
- #: ../app/controllers/discovered_hosts_controller.rb:293
305
+ #: ../app/controllers/discovered_hosts_controller.rb:300
306
306
  msgid "No hosts selected"
307
307
  msgstr "未選擇主機"
308
308
 
309
- #: ../app/controllers/discovered_hosts_controller.rb:299
309
+ #: ../app/controllers/discovered_hosts_controller.rb:306
310
310
  msgid "Something went wrong while selecting hosts - %s"
311
311
  msgstr "選擇主機時發生了錯誤 - %s"
312
312
 
@@ -404,7 +404,7 @@ msgstr ""
404
404
 
405
405
  #: ../app/helpers/discovery_rules_helper.rb:33
406
406
  msgid "Clone"
407
- msgstr ""
407
+ msgstr "複製"
408
408
 
409
409
  #: ../app/helpers/discovery_rules_helper.rb:34
410
410
  msgid "Delete rule '%s'?"
@@ -470,23 +470,23 @@ msgstr ""
470
470
  msgid "Facts could not be imported"
471
471
  msgstr ""
472
472
 
473
- #: ../app/models/host/discovered.rb:146
473
+ #: ../app/models/host/discovered.rb:155
474
474
  msgid "Could not get facts from proxy %{url}: %{error}"
475
475
  msgstr ""
476
476
 
477
- #: ../app/models/host/discovered.rb:160
477
+ #: ../app/models/host/discovered.rb:173
478
478
  msgid "Unable to perform reboot on %{name} (%{url}): %{msg}"
479
479
  msgstr ""
480
480
 
481
- #: ../app/models/host/discovered.rb:164 ../app/models/host/discovered.rb:183
481
+ #: ../app/models/host/discovered.rb:177 ../app/models/host/discovered.rb:200
482
482
  msgid "Unable to perform %{action} on %{ips}"
483
483
  msgstr ""
484
484
 
485
- #: ../app/models/host/discovered.rb:179
485
+ #: ../app/models/host/discovered.rb:196
486
486
  msgid "Unable to perform kexec on %{name} (%{url}): %{msg}"
487
487
  msgstr ""
488
488
 
489
- #: ../app/models/host/discovered.rb:203
489
+ #: ../app/models/host/discovered.rb:220
490
490
  msgid "Invalid hostname: Could not normalize the hostname"
491
491
  msgstr ""
492
492
 
@@ -694,6 +694,14 @@ msgstr ""
694
694
  msgid "Type of name generator"
695
695
  msgstr ""
696
696
 
697
+ #: ../app/models/setting/discovered.rb:40
698
+ msgid "Prefer IPv6 to IPv4 when calling discovered nodes"
699
+ msgstr ""
700
+
701
+ #: ../app/models/setting/discovered.rb:40
702
+ msgid "Prefer IPv6"
703
+ msgstr ""
704
+
697
705
  #: ../app/services/foreman_discovery/fact_parser.rb:4
698
706
  msgid "Discovery fact parser does not work with non-discovery host '%{host}'"
699
707
  msgstr ""
@@ -974,7 +982,7 @@ msgstr ""
974
982
 
975
983
  #: ../app/views/discovery_rules/clone.erb:1
976
984
  msgid "Clone %s"
977
- msgstr ""
985
+ msgstr "複製 %s"
978
986
 
979
987
  #: ../app/views/discovery_rules/edit.html.erb:1
980
988
  msgid "Edit %s"
@@ -1087,7 +1095,3 @@ msgstr "匯入詳情"
1087
1095
  #: action_names.rb:5
1088
1096
  msgid "Action with sub plans"
1089
1097
  msgstr "有子計畫的動作"
1090
-
1091
- #: ../app/helpers/discovered_hosts_helper.rb:10
1092
- #~ msgid "%s ago"
1093
- #~ msgstr "%s 之前"
data/package.json CHANGED
@@ -27,7 +27,7 @@
27
27
  "@babel/core": "^7.7.0",
28
28
  "@theforeman/builder": "^6.0.0",
29
29
  "@theforeman/eslint-plugin-foreman": "^6.0.0",
30
- "@theforeman/stories": "^7.0.0",
30
+ "@theforeman/stories": "^6.0.0",
31
31
  "@theforeman/test": "^8.0.0",
32
32
  "@theforeman/vendor-dev": "^6.0.0",
33
33
  "babel-eslint": "^10.0.3",
@@ -19,6 +19,7 @@ class ManagedExtensionsTest < ActiveSupport::TestCase
19
19
  @host = StubHost.new
20
20
  @host.type = "Host::Discovered"
21
21
  @host.stubs(:ip).returns("192.168.1.1")
22
+ @host.stubs(:ip6).returns(nil)
22
23
  @host.stubs(:old).returns(@host)
23
24
  @facts = {}
24
25
  @host.stubs(:facts).returns(@facts)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_discovery
3
3
  version: !ruby/object:Gem::Version
4
- version: 17.0.0
4
+ version: 17.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aditi Puntambekar
@@ -73,7 +73,7 @@ authors:
73
73
  autorequire:
74
74
  bindir: bin
75
75
  cert_chain: []
76
- date: 2021-05-03 00:00:00.000000000 Z
76
+ date: 2021-10-05 00:00:00.000000000 Z
77
77
  dependencies: []
78
78
  description: MaaS Discovery Plugin engine for Foreman
79
79
  email: gsutclif@redhat.com
@@ -349,26 +349,26 @@ test_files:
349
349
  - test/facts/only-ipv6.json
350
350
  - test/facts/skylake-ipv6.json
351
351
  - test/functional/api/v2/discovery_rules_controller_test.rb
352
+ - test/functional/api/v2/discovered_hosts_controller_test.rb
352
353
  - test/functional/api/v2/fact_value_extensions_test.rb
353
354
  - test/functional/api/v2/settings_controller_test.rb
354
- - test/functional/api/v2/discovered_hosts_controller_test.rb
355
355
  - test/functional/foreman_discovery/concerns/hosts_controller_extensions_test.rb
356
356
  - test/functional/discovered_hosts_controller_test.rb
357
357
  - test/functional/discovery_rules_controller_test.rb
358
358
  - test/integration/discovered_hosts_test.rb
359
- - test/models/setting_test.rb
360
359
  - test/unit/ui_notifications/destroy_host_test.rb
361
360
  - test/unit/ui_notifications/new_host_test.rb
362
361
  - test/unit/discovered_mailer_test.rb
363
362
  - test/unit/discovery_taxonomy_extensions_test.rb
364
- - test/unit/fact_parser_test.rb
365
363
  - test/unit/lldp_neighbors_test.rb
366
- - test/unit/setting_discovered_test.rb
364
+ - test/unit/discovery_rule_test.rb
365
+ - test/unit/fact_to_category_resolver_test.rb
367
366
  - test/unit/discovered_extensions_test.rb
368
367
  - test/unit/discovery_attribute_set_test.rb
368
+ - test/unit/fact_parser_test.rb
369
+ - test/unit/setting_discovered_test.rb
369
370
  - test/unit/managed_extensions_test.rb
370
371
  - test/unit/host_discovered_test.rb
371
- - test/unit/discovery_rule_test.rb
372
- - test/unit/fact_to_category_resolver_test.rb
373
- - test/test_plugin_helper.rb
372
+ - test/models/setting_test.rb
374
373
  - test/test_helper_discovery.rb
374
+ - test/test_plugin_helper.rb