foreman_scc_manager 1.7.0 → 1.7.1

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: 1049862eb94d3a0e5da9add1afcf83da6a7edf3e8e315f126c3ec531f3b8d3fc
4
- data.tar.gz: aae14c2ae2305b52281b4c270dcec231b01bfe3745fc4b66b0da084d26b57a15
3
+ metadata.gz: a6dd28243aa51ff11edf70f4679107d0327a021442f361b3e7a5a33b652f563a
4
+ data.tar.gz: bf08fc7303d79042037e36241676202acaef29f172ef0124fb14f5c78d7b593b
5
5
  SHA512:
6
- metadata.gz: 87c896f8ad3c8e279e068ebe14d6a7a7c1648d94ae4c677500232208f6d8f181d67e4120d4cd1cd8aa3bfed1961851f49cda1e786cd2a7bbf11a20d604bdd030
7
- data.tar.gz: 7cf6d36616da6866fb1f641e2f28b927bf789467c7bea6c6adecef0dc1bf4a841c603b79fac309cb3626b9ad2846eae16cdf8a7ac79f4569d47ea4e5c9bb1fb8
6
+ metadata.gz: '0813af8e7f9fbfa54e7b1826a9f552038b43975e6deb4c1138b91be202614a5e892b9e1eaca33474437a13b068e1ed49c568cbf693f4d66f7f627a941c2d59fd'
7
+ data.tar.gz: 47bd09d7e3bf94d7d12f9af306a24ed610bc6afa63b7b7736fade9ab0dc2e3b6967e0131c1f22201c369cc7710688c0c24921e2e66aba16291f42354f4803997
data/README.md CHANGED
@@ -13,6 +13,7 @@ for how to install Foreman plugins
13
13
 
14
14
  | Foreman Version | Katello Version | Plugin Version |
15
15
  | --------------- | --------------- | -------------- |
16
+ | 1.24 | 3.14 | ~> 1.7.1 |
16
17
  | 1.22 | 3.12 | ~> 1.7.0 |
17
18
  | 1.21 | 3.10 | ~> 1.6.0 |
18
19
  | 1.20 | 3.9 | ~> 1.6.0 |
@@ -26,7 +26,7 @@ $ ->
26
26
  $('#connection_test_result')[0].innerHTML = ''
27
27
  $('#test_scc_connection_indicator').show()
28
28
  $.ajax event.target.parentNode.dataset['url'],
29
- type: 'PUT'
29
+ type: 'POST'
30
30
  dataType: 'JSON'
31
31
  data: $('form').serialize()
32
32
  success: (result) ->
@@ -1,12 +1,15 @@
1
1
  module Actions
2
2
  module SccManager
3
3
  class SyncProducts < Actions::EntryAction
4
+ include EncryptValue
5
+
4
6
  def plan(scc_account)
5
7
  action_subject(scc_account)
8
+ password = encrypt_field(scc_account.password)
6
9
  plan_self(id: scc_account.id,
7
10
  base_url: scc_account.base_url,
8
11
  login: scc_account.login,
9
- password: scc_account.password)
12
+ password: password)
10
13
  end
11
14
 
12
15
  def run
@@ -15,9 +18,11 @@ module Actions
15
18
  products = ::SccManager.get_scc_data(input.fetch(:base_url),
16
19
  '/connect/organizations/products',
17
20
  input.fetch(:login),
18
- input.fetch(:password))
21
+ decrypt_field(input.fetch(:password)))
19
22
  output[:data] = ::SccManager.sanitize_products(products).values
20
- rescue StandardError
23
+ rescue StandardError => e
24
+ ::Foreman::Logging.logger('foreman_scc_manager').error "Error while syncronizing SCC-Products: #{e}"
25
+ output[:error] = e.to_s
21
26
  output[:status] = 'FAILURE'
22
27
  end
23
28
  end
@@ -34,10 +39,6 @@ module Actions
34
39
  _('Sync SUSE subscriptions (Products)')
35
40
  end
36
41
 
37
- def humanized_input
38
- input.dup.update(password: '***')
39
- end
40
-
41
42
  def humanized_output
42
43
  output.dup.update(data: 'Trimmed')
43
44
  end
@@ -1,11 +1,14 @@
1
1
  module Actions
2
2
  module SccManager
3
3
  class SyncRepositories < Actions::EntryAction
4
+ include EncryptValue
5
+
4
6
  def plan(scc_account)
5
7
  action_subject(scc_account)
8
+ password = encrypt_field(scc_account.password)
6
9
  plan_self(base_url: scc_account.base_url,
7
10
  login: scc_account.login,
8
- password: scc_account.password)
11
+ password: password)
9
12
  end
10
13
 
11
14
  def run
@@ -14,9 +17,11 @@ module Actions
14
17
  output[:data] = ::SccManager.get_scc_data(input[:base_url],
15
18
  '/connect/organizations/repositories',
16
19
  input[:login],
17
- input[:password])
20
+ decrypt_field(input[:password]))
18
21
  output[:status] = 'SUCCESS'
19
- rescue StandardError
22
+ rescue StandardError => e
23
+ ::Foreman::Logging.logger('foreman_scc_manager').error "Error while syncronizing SCC-Repositories: #{e}"
24
+ output[:error] = e.to_s
20
25
  output[:status] = 'FAILURE'
21
26
  end
22
27
  end
@@ -33,10 +38,6 @@ module Actions
33
38
  _('Sync SUSE subscriptions (Repositories)')
34
39
  end
35
40
 
36
- def humanized_input
37
- input.dup.update(password: '***')
38
- end
39
-
40
41
  def humanized_output
41
42
  output.dup.update(data: "Trimmed (got #{output[:data]&.length} repositories")
42
43
  end
@@ -8,8 +8,8 @@ module SccManager
8
8
  uri.scheme = URI.parse(proxy_config[:host]).scheme
9
9
  uri.host = URI.parse(proxy_config[:host]).host
10
10
  uri.port = proxy_config[:port].try(:to_s)
11
- uri.user = proxy_config[:user].try(:to_s)
12
- uri.password = proxy_config[:password].try(:to_s)
11
+ uri.user = proxy_config[:user]
12
+ uri.password = proxy_config[:password] if uri.user.present?
13
13
 
14
14
  RestClient.proxy = uri.to_s
15
15
  end
@@ -166,7 +166,8 @@ class SccAccount < ApplicationRecord
166
166
  def test_connection
167
167
  get_scc_data('/connect/organizations/subscriptions')
168
168
  true
169
- rescue StandardError
169
+ rescue StandardError => e
170
+ ::Foreman::Logging.logger('foreman_scc_manager').warn "Error occurred while testing SCC-Connection to Account #{self}: #{e}"
170
171
  false
171
172
  end
172
173
 
@@ -185,10 +186,10 @@ class SccAccount < ApplicationRecord
185
186
  cached_repository.save!
186
187
  upstream_repo_ids << ur['id']
187
188
  end
188
- logger.debug "Found #{upstream_repo_ids.length} repositories"
189
+ ::Foreman::Logging.logger('foreman_scc_manager').debug "Found #{upstream_repo_ids.length} repositories"
189
190
  # delete repositories beeing removed upstream
190
191
  to_delete = scc_repositories.where.not(scc_id: upstream_repo_ids)
191
- logger.debug "Deleting #{to_delete.count} old repositories"
192
+ ::Foreman::Logging.logger('foreman_scc_manager').debug "Deleting #{to_delete.count} old repositories"
192
193
  to_delete.destroy_all
193
194
  end
194
195
 
@@ -208,10 +209,10 @@ class SccAccount < ApplicationRecord
208
209
  cached_product.save!
209
210
  upstream_product_ids << up['id']
210
211
  end
211
- logger.debug "Found #{upstream_product_ids.length} products"
212
+ ::Foreman::Logging.logger('foreman_scc_manager').debug "Found #{upstream_product_ids.length} products"
212
213
  # delete products beeing removed upstream
213
214
  to_delete = scc_products.where.not(scc_id: upstream_product_ids)
214
- logger.debug "Deleting #{to_delete.count} old products"
215
+ ::Foreman::Logging.logger('foreman_scc_manager').debug "Deleting #{to_delete.count} old products"
215
216
  to_delete.destroy_all
216
217
  # rewire product to product relationships
217
218
  upstream_products.each do |up|
@@ -219,7 +220,7 @@ class SccAccount < ApplicationRecord
219
220
  begin
220
221
  scc_products.find_by!(scc_id: up['id']).update!(scc_extensions: extensions)
221
222
  rescue ActiveRecord::RecordNotFound
222
- logger.info "Failed to find parent scc_product '#{up['name']}'."
223
+ ::Foreman::Logging.logger('foreman_scc_manager').info "Failed to find parent scc_product '#{up['name']}'."
223
224
  end
224
225
  end
225
226
  end
@@ -2,4 +2,4 @@
2
2
 
3
3
  object @scc_product
4
4
  extends 'api/v2/scc_products/base'
5
- attributes :organization_id, :organization_name, :scc_account_id, :name, :arch, :friendly_name, :description
5
+ attributes :organization_id, :organization_name, :scc_account_id, :name, :arch, :friendly_name, :description, :product_id
@@ -13,7 +13,8 @@
13
13
  <%= text_f f, :login, :help_block => _("Use your 'Organization credentials' obtained from the SUSE Customer Center.") %>
14
14
  <%= password_f f, :password %>
15
15
  <%= text_f f, :base_url, label: _('Base URL') %>
16
- <%= selectable_f f, :interval, SccAccount::TYPES, label: _('Interval') %>
16
+ <%= selectable_f f, :interval, SccAccount::TYPES, {},
17
+ { :label => _('Sync interval'), :help_block => _("The sync interval is used to periodically update the SCC authentication tokens of any imported products.") } %>
17
18
  <%= field f, :sync_date, label: _('Sync Date') do
18
19
  f.datetime_field :sync_date, placeholder: Time.now
19
20
  end %>
@@ -25,7 +26,7 @@
25
26
  id: 'test_scc_connection_btn',
26
27
  spinner_id: 'test_scc_connection_indicator',
27
28
  class: 'btn-default',
28
- 'data-url': test_connection_scc_accounts_path(scc_account_id: @scc_account)) %>
29
+ 'data-url': @scc_account.id ? test_connection_scc_account_path : test_connection_scc_accounts_path ) %>
29
30
  </div>
30
31
  <div class='col-md-2'>
31
32
  <span id='connection_test_result'></span>
data/config/routes.rb CHANGED
@@ -2,10 +2,11 @@ Rails.application.routes.draw do
2
2
  resources :scc_accounts do
3
3
  collection do
4
4
  post 'test_connection'
5
+ put 'test_connection'
5
6
  get 'auto_complete_search'
6
7
  end
7
8
  member do
8
- put 'test_connection'
9
+ patch 'test_connection'
9
10
  put 'sync'
10
11
  put 'bulk_subscribe'
11
12
  end
@@ -56,7 +56,9 @@ module ForemanSccManager
56
56
  end
57
57
 
58
58
  # Add a new role called 'SccManager' if it doesn't exist
59
- role 'SccManager', %i[view_scc use_scc new_scc edit_scc delete_scc sync_scc]
59
+ role 'SccManager',
60
+ %i[view_scc use_scc new_scc edit_scc delete_scc sync_scc],
61
+ 'Role granting permissons to manage SUSE Subscriptions'
60
62
 
61
63
  # add menu entry
62
64
  menu :top_menu, :scc_manager,
@@ -1,3 +1,3 @@
1
1
  module ForemanSccManager
2
- VERSION = '1.7.0'.freeze
2
+ VERSION = '1.7.1'.freeze
3
3
  end
@@ -2,7 +2,7 @@
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
3
  # This file is distributed under the same license as the foreman_scc_manager package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
- #
5
+ #
6
6
  # Translators:
7
7
  # Wiederoder <stefanwiederoder@googlemail.com>, 2019
8
8
  # Bryan Kearney <bryan.kearney@gmail.com>, 2019
@@ -11,13 +11,11 @@
11
11
  # Michael Moll, 2019
12
12
  # Lukas K. <kallies@puzzle.ch>, 2019
13
13
  # Markus Bucher <bucher@atix.de>, 2019
14
- #
15
- #, fuzzy
14
+ #
16
15
  msgid ""
17
16
  msgstr ""
18
17
  "Project-Id-Version: foreman_scc_manager 1.7.0\n"
19
18
  "Report-Msgid-Bugs-To: \n"
20
- "POT-Creation-Date: 2019-10-22 13:59+0000\n"
21
19
  "PO-Revision-Date: 2019-10-17 13:28+0000\n"
22
20
  "Last-Translator: Markus Bucher <bucher@atix.de>, 2019\n"
23
21
  "Language-Team: German (https://www.transifex.com/foreman/teams/114/de/)\n"
@@ -27,168 +25,173 @@ msgstr ""
27
25
  "Language: de\n"
28
26
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
29
27
 
30
- #: ../app/controllers/scc_accounts_controller.rb:64
31
- msgid "Sync task started."
32
- msgstr "Sync Job gestartet."
33
-
34
- #: ../app/controllers/scc_accounts_controller.rb:66
35
- #: ../app/controllers/scc_accounts_controller.rb:86
36
- msgid "Failed to add task to queue: %s"
37
- msgstr "Aufgabe konnte nicht in die Warteschlange gestellt werden: %s"
38
-
39
- #: ../app/controllers/scc_accounts_controller.rb:68
40
- #: ../app/controllers/scc_accounts_controller.rb:88
41
- msgid "Lock on SCC account already taken: %s"
42
- msgstr "Lock für SCC Zugang bereits vergeben: %s"
28
+ msgid "Actions"
29
+ msgstr "Aktionen"
43
30
 
44
- #: ../app/controllers/scc_accounts_controller.rb:81
45
- msgid "Task to subscribe products started."
46
- msgstr "Job zum abonnieren von Produkten gestartet."
31
+ msgid "Add SCC account"
32
+ msgstr "SCC Konto hinzufügen"
47
33
 
48
- #: ../app/controllers/scc_accounts_controller.rb:83
49
- msgid "No products selected."
50
- msgstr "Keine Produkte ausgewählt."
34
+ msgid "Add SUSE Customer Center Account"
35
+ msgstr "SUSE Customer Center Konto hinzufügen"
51
36
 
52
- #: ../app/lib/actions/scc_manager/subscribe_product.rb:5
53
- msgid "Product already subscribed!"
54
- msgstr "Produkt wurde bereits abonniert!"
37
+ msgid "Base URL"
38
+ msgstr "Basis URL"
55
39
 
56
- #: ../app/lib/actions/scc_manager/subscribe_product.rb:35 action_names.rb:1
57
- msgid "Subscribe SCC Product"
58
- msgstr "SCC Produkt abonnieren"
40
+ msgid "Bulk subscription of scc_products for scc_account"
41
+ msgstr ""
59
42
 
60
- #: ../app/lib/actions/scc_manager/sync.rb:27 action_names.rb:2
61
- msgid "Sync SUSE subscriptions"
62
- msgstr "SUSE Abonnements synchronisieren"
43
+ msgid "Create an scc_account"
44
+ msgstr ""
63
45
 
64
- #: ../app/lib/actions/scc_manager/sync_plan_account_repositories.rb:31
65
- msgid "Update SUSE repositories %s"
66
- msgstr "SUSE Repositorien %s aktualisieren"
46
+ msgid "Cron expression is not valid!"
47
+ msgstr "Cron-Ausdruck ungültig!"
67
48
 
68
- #: ../app/lib/actions/scc_manager/sync_plan_account_repositories.rb:31
69
- msgid "Unknown"
70
- msgstr "Unbekannt"
49
+ msgid "Delete %s?"
50
+ msgstr "%s löschen?"
71
51
 
72
- #: ../app/lib/actions/scc_manager/sync_plan_account_repositories.rb:33
73
- #: action_names.rb:3
74
- msgid "Update SUSE repositories"
75
- msgstr "SUSE Repositorien aktualisieren"
52
+ msgid "Delete scc_account"
53
+ msgstr ""
76
54
 
77
- #: ../app/lib/actions/scc_manager/sync_products.rb:34 action_names.rb:4
78
- msgid "Sync SUSE subscriptions (Products)"
79
- msgstr "SUSE Abonnements (Produkte) synchronisieren"
55
+ msgid "Edit %s"
56
+ msgstr "%s bearbeiten"
80
57
 
81
- #: ../app/lib/actions/scc_manager/sync_repositories.rb:33 action_names.rb:5
82
- msgid "Sync SUSE subscriptions (Repositories)"
83
- msgstr "SUSE Abonnements (Repositorien) synchronisieren"
58
+ msgid "Failed to add task to queue: %s"
59
+ msgstr "Aufgabe konnte nicht in die Warteschlange gestellt werden: %s"
84
60
 
85
- #: ../app/models/scc_account.rb:58
86
- msgid "never synced"
87
- msgstr "Nie synchronisiert"
61
+ msgid "Foreman plugin to sync SUSE Customer Center products and repositories into Katello."
62
+ msgstr "Foreman Plugin um SUSE Customer Center Produkte und Repositorien in Katello zu importieren."
88
63
 
89
- #: ../app/models/scc_account.rb:105
90
64
  msgid "Interval cannot be nil"
91
65
  msgstr "Intervall darf nicht Null sein"
92
66
 
93
- #: ../app/models/scc_account.rb:112
67
+ msgid "Interval for syncing scc_account"
68
+ msgstr ""
69
+
94
70
  msgid "Interval not set correctly"
95
71
  msgstr "Intervall nicht richtig gesetzt"
96
72
 
97
- #: ../app/models/scc_account.rb:117
98
- msgid "Cron expression is not valid!"
99
- msgstr "Cron-Ausdruck ungültig!"
73
+ msgid "Last Sync time of scc_account"
74
+ msgstr ""
100
75
 
101
- #: ../app/models/scc_account_sync_plan_task_group.rb:5
102
- msgid "SUSE Subscription"
103
- msgstr "SUSE Abonnement"
76
+ msgid "Last synced"
77
+ msgstr "Letzte Synchronisation"
104
78
 
105
- #: ../app/views/scc_account_sync_plan_task_groups/_scc_account_sync_plan_task_groups.html.erb:1
106
- msgid "SUSE Subscription: "
79
+ msgid "List all products for scc_account"
107
80
  msgstr ""
108
81
 
109
- #: ../app/views/scc_accounts/_form.html.erb:6
110
- msgid "SUSE Customer Center account"
111
- msgstr "SUSE Customer Center Konto"
112
-
113
- #: ../app/views/scc_accounts/_form.html.erb:13
114
- msgid ""
115
- "Use your 'Organization credentials' obtained from the SUSE Customer Center."
82
+ msgid "List all scc_accounts"
116
83
  msgstr ""
117
- "Verwenden Sie die \"Organisationszugangsdaten\" aus dem SUSE Customer "
118
- "Center."
119
84
 
120
- #: ../app/views/scc_accounts/_form.html.erb:15
121
- msgid "Base URL"
122
- msgstr "Basis URL"
85
+ msgid "Lock on SCC account already taken: %s"
86
+ msgstr "Lock für SCC Zugang bereits vergeben: %s"
123
87
 
124
- #: ../app/views/scc_accounts/_form.html.erb:16
125
- msgid "Interval"
126
- msgstr "Intervall"
88
+ msgid "Login id of scc_account"
89
+ msgstr ""
127
90
 
128
- #: ../app/views/scc_accounts/_form.html.erb:17
129
- msgid "Sync Date"
130
- msgstr "Synchronisationsdatum"
91
+ msgid "Name of the scc_account"
92
+ msgstr ""
131
93
 
132
- #: ../app/views/scc_accounts/_form.html.erb:24
133
- msgid "Test Connection"
134
- msgstr "Verbindung testen"
94
+ msgid "No products selected."
95
+ msgstr "Keine Produkte ausgewählt."
135
96
 
136
- #: ../app/views/scc_accounts/edit.html.erb:1
137
- msgid "Edit %s"
138
- msgstr "%s bearbeiten"
97
+ msgid "Password of scc_account"
98
+ msgstr ""
139
99
 
140
- #: ../app/views/scc_accounts/index.html.erb:2
141
- msgid "SUSE subscriptions"
142
- msgstr "SUSE Abonnements"
100
+ msgid "Please sync your SUSE subscriptions first."
101
+ msgstr "Bitte synchronisieren Sie zuerst Ihre SUSE Abonnements."
143
102
 
144
- #: ../app/views/scc_accounts/index.html.erb:3
145
- msgid "Add SCC account"
146
- msgstr "SCC Konto hinzufügen"
103
+ msgid "Product already subscribed!"
104
+ msgstr "Produkt wurde bereits abonniert!"
147
105
 
148
- #: ../app/views/scc_accounts/index.html.erb:9
149
106
  msgid "Products"
150
107
  msgstr "Produkte"
151
108
 
152
- #: ../app/views/scc_accounts/index.html.erb:10
153
- msgid "Last synced"
154
- msgstr "Letzte Synchronisation"
109
+ msgid "SUSE Customer Center"
110
+ msgstr "SUSE Customer Center"
155
111
 
156
- #: ../app/views/scc_accounts/index.html.erb:11
157
- msgid "Actions"
158
- msgstr "Aktionen"
112
+ msgid "SUSE Customer Center account"
113
+ msgstr "SUSE Customer Center Konto"
114
+
115
+ msgid "SUSE Subscription"
116
+ msgstr "SUSE Abonnement"
117
+
118
+ msgid "SUSE Subscription: "
119
+ msgstr "SUSE Abonnement:"
120
+
121
+ msgid "SUSE Subscriptions"
122
+ msgstr "SUSE Abonnements"
123
+
124
+ msgid "SUSE subscriptions"
125
+ msgstr "SUSE Abonnements"
159
126
 
160
- #: ../app/views/scc_accounts/index.html.erb:24
161
127
  msgid "Select products"
162
128
  msgstr "Produkte auswählen"
163
129
 
164
- #: ../app/views/scc_accounts/index.html.erb:25
130
+ msgid "Show an scc_account product"
131
+ msgstr ""
132
+
133
+ msgid "Show scc_account"
134
+ msgstr ""
135
+
136
+ msgid "Subscribe SCC Product"
137
+ msgstr "SCC Produkt abonnieren"
138
+
139
+ msgid "Subscribe product"
140
+ msgstr ""
141
+
165
142
  msgid "Sync"
166
143
  msgstr "Synchronisation"
167
144
 
168
- #: ../app/views/scc_accounts/index.html.erb:28
169
- msgid "Delete %s?"
170
- msgstr "%s löschen?"
145
+ msgid "Sync Date"
146
+ msgstr "Synchronisationsdatum"
171
147
 
172
- #: ../app/views/scc_accounts/new.html.erb:1
173
- msgid "Add SUSE Customer Center Account"
174
- msgstr "SUSE Customer Center Konto hinzufügen"
148
+ msgid "Sync SUSE subscriptions"
149
+ msgstr "SUSE Abonnements synchronisieren"
175
150
 
176
- #: ../app/views/scc_accounts/show.html.erb:25
177
- msgid "SUSE Customer Center"
178
- msgstr "SUSE Customer Center"
151
+ msgid "Sync SUSE subscriptions (Products)"
152
+ msgstr "SUSE Abonnements (Produkte) synchronisieren"
179
153
 
180
- #: ../app/views/scc_accounts/show.html.erb:36
181
- msgid "Please sync your SUSE subscriptions first."
182
- msgstr "Bitte synchronisieren Sie zuerst Ihre SUSE Abonnements."
154
+ msgid "Sync SUSE subscriptions (Repositories)"
155
+ msgstr "SUSE Abonnements (Repositorien) synchronisieren"
183
156
 
184
- #: ../lib/foreman_scc_manager/engine.rb:45
185
- msgid "SUSE Subscriptions"
186
- msgstr "SUSE Abonnements"
157
+ msgid "Sync interval"
158
+ msgstr ""
187
159
 
188
- #: gemspec.rb:2
189
- msgid ""
190
- "Foreman plugin to sync SUSE Customer Center products and repositories into "
191
- "Katello."
160
+ msgid "Sync scc_account"
192
161
  msgstr ""
193
- "Foreman Plugin um SUSE Customer Center Produkte und Repositorien in Katello "
194
- "zu importieren."
162
+
163
+ msgid "Sync task started."
164
+ msgstr "Sync Job gestartet."
165
+
166
+ msgid "Task to subscribe products started."
167
+ msgstr "Job zum abonnieren von Produkten gestartet."
168
+
169
+ msgid "Test Connection"
170
+ msgstr "Verbindung testen"
171
+
172
+ msgid "Test connection for scc_account"
173
+ msgstr ""
174
+
175
+ msgid "The sync interval is used to periodically update the SCC authentication tokens of any imported products."
176
+ msgstr ""
177
+
178
+ msgid "URL of SUSE for scc_account"
179
+ msgstr ""
180
+
181
+ msgid "Unknown"
182
+ msgstr "Unbekannt"
183
+
184
+ msgid "Update SUSE repositories"
185
+ msgstr "SUSE Repositorien aktualisieren"
186
+
187
+ msgid "Update SUSE repositories %s"
188
+ msgstr "SUSE Repositorien %s aktualisieren"
189
+
190
+ msgid "Update scc_account"
191
+ msgstr ""
192
+
193
+ msgid "Use your 'Organization credentials' obtained from the SUSE Customer Center."
194
+ msgstr "Verwenden Sie die \"Organisationszugangsdaten\" aus dem SUSE Customer Center."
195
+
196
+ msgid "never synced"
197
+ msgstr "Nie synchronisiert"
@@ -17,226 +17,173 @@ msgstr ""
17
17
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
18
18
  "\n"
19
19
 
20
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:15
21
- msgid "List all scc_accounts"
20
+ msgid "Actions"
22
21
  msgstr ""
23
22
 
24
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:24
25
- msgid "Show scc_account"
26
- msgstr ""
23
+ msgid "Add SCC account"
24
+ msgstr "Add SCC account"
27
25
 
28
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:32
29
- msgid "Name of the scc_account"
30
- msgstr ""
26
+ msgid "Add SUSE Customer Center Account"
27
+ msgstr "Add SUSE Customer Center Account"
31
28
 
32
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:33 ../app/controllers/api/v2/scc_accounts_controller.rb:64
33
- msgid "Login id of scc_account"
34
- msgstr ""
29
+ msgid "Base URL"
30
+ msgstr "Base URL"
35
31
 
36
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:34 ../app/controllers/api/v2/scc_accounts_controller.rb:65
37
- msgid "Password of scc_account"
32
+ msgid "Bulk subscription of scc_products for scc_account"
38
33
  msgstr ""
39
34
 
40
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:35 ../app/controllers/api/v2/scc_accounts_controller.rb:66
41
- msgid "URL of SUSE for scc_account"
35
+ msgid "Create an scc_account"
42
36
  msgstr ""
43
37
 
44
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:36
45
- msgid "Interval for syncing scc_account"
38
+ msgid "Cron expression is not valid!"
46
39
  msgstr ""
47
40
 
48
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:37
49
- msgid "Last Sync time of scc_account"
41
+ msgid "Delete %s?"
50
42
  msgstr ""
51
43
 
52
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:41
53
- msgid "Create an scc_account"
44
+ msgid "Delete scc_account"
54
45
  msgstr ""
55
46
 
56
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:48
57
- msgid "Update scc_account"
47
+ msgid "Edit %s"
58
48
  msgstr ""
59
49
 
60
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:55
61
- msgid "Delete scc_account"
62
- msgstr ""
50
+ msgid "Failed to add task to queue: %s"
51
+ msgstr "Failed to add task to queue: %s"
63
52
 
64
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:61 ../app/controllers/api/v2/scc_accounts_controller.rb:62
65
- msgid "Test connection for scc_account"
66
- msgstr ""
53
+ msgid "Foreman plugin to sync SUSE Customer Center products and repositories into Katello."
54
+ msgstr "Foreman plugin to sync SUSE Customer Center products and repositories into Katello."
67
55
 
68
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:89
69
- msgid "Sync scc_account"
56
+ msgid "Interval cannot be nil"
70
57
  msgstr ""
71
58
 
72
- #: ../app/controllers/api/v2/scc_accounts_controller.rb:103
73
- msgid "Bulk subscription of scc_products for scc_account"
59
+ msgid "Interval for syncing scc_account"
74
60
  msgstr ""
75
61
 
76
- #: ../app/controllers/api/v2/scc_products_controller.rb:15
77
- msgid "List all products for scc_account"
62
+ msgid "Interval not set correctly"
78
63
  msgstr ""
79
64
 
80
- #: ../app/controllers/api/v2/scc_products_controller.rb:24
81
- msgid "Show an scc_account product"
65
+ msgid "Last Sync time of scc_account"
82
66
  msgstr ""
83
67
 
84
- #: ../app/controllers/api/v2/scc_products_controller.rb:29
85
- msgid "Subscribe product"
86
- msgstr ""
68
+ msgid "Last synced"
69
+ msgstr "Last synced"
87
70
 
88
- #: ../app/controllers/scc_accounts_controller.rb:64
89
- msgid "Sync task started."
90
- msgstr "Sync task started."
71
+ msgid "List all products for scc_account"
72
+ msgstr ""
91
73
 
92
- #: ../app/controllers/scc_accounts_controller.rb:66 ../app/controllers/scc_accounts_controller.rb:86
93
- msgid "Failed to add task to queue: %s"
94
- msgstr "Failed to add task to queue: %s"
74
+ msgid "List all scc_accounts"
75
+ msgstr ""
95
76
 
96
- #: ../app/controllers/scc_accounts_controller.rb:68 ../app/controllers/scc_accounts_controller.rb:88
97
77
  msgid "Lock on SCC account already taken: %s"
98
78
  msgstr "Lock on SCC account already taken: %s"
99
79
 
100
- #: ../app/controllers/scc_accounts_controller.rb:81
101
- msgid "Task to subscribe products started."
80
+ msgid "Login id of scc_account"
81
+ msgstr ""
82
+
83
+ msgid "Name of the scc_account"
102
84
  msgstr ""
103
85
 
104
- #: ../app/controllers/scc_accounts_controller.rb:83
105
86
  msgid "No products selected."
106
87
  msgstr ""
107
88
 
108
- #: ../app/lib/actions/scc_manager/subscribe_product.rb:5
89
+ msgid "Password of scc_account"
90
+ msgstr ""
91
+
92
+ msgid "Please sync your SUSE subscriptions first."
93
+ msgstr "Please sync your SUSE subscriptions first."
94
+
109
95
  msgid "Product already subscribed!"
110
96
  msgstr "Product already subscribed!"
111
97
 
112
- #: ../app/lib/actions/scc_manager/subscribe_product.rb:35 action_names.rb:21
113
- msgid "Subscribe SCC Product"
114
- msgstr "Subscribe SCC Product"
98
+ msgid "Products"
99
+ msgstr ""
115
100
 
116
- #: ../app/lib/actions/scc_manager/sync.rb:27 action_names.rb:22
117
- msgid "Sync SUSE subscriptions"
118
- msgstr "Sync SUSE subscriptions"
101
+ msgid "SUSE Customer Center"
102
+ msgstr "SUSE Customer Center"
119
103
 
120
- #: ../app/lib/actions/scc_manager/sync_plan_account_repositories.rb:31
121
- msgid "Update SUSE repositories %s"
122
- msgstr ""
104
+ msgid "SUSE Customer Center account"
105
+ msgstr "SUSE Customer Center account"
123
106
 
124
- #: ../app/lib/actions/scc_manager/sync_plan_account_repositories.rb:31
125
- msgid "Unknown"
107
+ msgid "SUSE Subscription"
126
108
  msgstr ""
127
109
 
128
- #: ../app/lib/actions/scc_manager/sync_plan_account_repositories.rb:33 action_names.rb:71
129
- msgid "Update SUSE repositories"
110
+ msgid "SUSE Subscription: "
130
111
  msgstr ""
131
112
 
132
- #: ../app/lib/actions/scc_manager/sync_products.rb:34 action_names.rb:72
133
- msgid "Sync SUSE subscriptions (Products)"
134
- msgstr "Sync SUSE subscriptions (Products)"
113
+ msgid "SUSE Subscriptions"
114
+ msgstr "SUSE Subscriptions"
135
115
 
136
- #: ../app/lib/actions/scc_manager/sync_repositories.rb:33 action_names.rb:73
137
- msgid "Sync SUSE subscriptions (Repositories)"
138
- msgstr "Sync SUSE subscriptions (Repositories)"
116
+ msgid "SUSE subscriptions"
117
+ msgstr "SUSE subscriptions"
139
118
 
140
- #: ../app/models/scc_account.rb:59
141
- msgid "never synced"
119
+ msgid "Select products"
142
120
  msgstr ""
143
121
 
144
- #: ../app/models/scc_account.rb:106
145
- msgid "Interval cannot be nil"
122
+ msgid "Show an scc_account product"
146
123
  msgstr ""
147
124
 
148
- #: ../app/models/scc_account.rb:113
149
- msgid "Interval not set correctly"
125
+ msgid "Show scc_account"
150
126
  msgstr ""
151
127
 
152
- #: ../app/models/scc_account.rb:118
153
- msgid "Cron expression is not valid!"
154
- msgstr ""
128
+ msgid "Subscribe SCC Product"
129
+ msgstr "Subscribe SCC Product"
155
130
 
156
- #: ../app/models/scc_account_sync_plan_task_group.rb:5
157
- msgid "SUSE Subscription"
131
+ msgid "Subscribe product"
158
132
  msgstr ""
159
133
 
160
- #: ../app/views/scc_account_sync_plan_task_groups/_scc_account_sync_plan_task_groups.html.erb:1
161
- msgid "SUSE Subscription: "
134
+ msgid "Sync"
135
+ msgstr "Sync"
136
+
137
+ msgid "Sync Date"
162
138
  msgstr ""
163
139
 
164
- #: ../app/views/scc_accounts/_form.html.erb:6
165
- msgid "SUSE Customer Center account"
166
- msgstr "SUSE Customer Center account"
140
+ msgid "Sync SUSE subscriptions"
141
+ msgstr "Sync SUSE subscriptions"
167
142
 
168
- #: ../app/views/scc_accounts/_form.html.erb:13
169
- msgid "Use your 'Organization credentials' obtained from the SUSE Customer Center."
170
- msgstr ""
143
+ msgid "Sync SUSE subscriptions (Products)"
144
+ msgstr "Sync SUSE subscriptions (Products)"
171
145
 
172
- #: ../app/views/scc_accounts/_form.html.erb:15
173
- msgid "Base URL"
174
- msgstr "Base URL"
146
+ msgid "Sync SUSE subscriptions (Repositories)"
147
+ msgstr "Sync SUSE subscriptions (Repositories)"
175
148
 
176
- #: ../app/views/scc_accounts/_form.html.erb:16
177
- msgid "Interval"
149
+ msgid "Sync interval"
178
150
  msgstr ""
179
151
 
180
- #: ../app/views/scc_accounts/_form.html.erb:17
181
- msgid "Sync Date"
152
+ msgid "Sync scc_account"
182
153
  msgstr ""
183
154
 
184
- #: ../app/views/scc_accounts/_form.html.erb:24
185
- msgid "Test Connection"
186
- msgstr "Test Connection"
155
+ msgid "Sync task started."
156
+ msgstr "Sync task started."
187
157
 
188
- #: ../app/views/scc_accounts/edit.html.erb:1
189
- msgid "Edit %s"
158
+ msgid "Task to subscribe products started."
190
159
  msgstr ""
191
160
 
192
- #: ../app/views/scc_accounts/index.html.erb:2
193
- msgid "SUSE subscriptions"
194
- msgstr "SUSE subscriptions"
195
-
196
- #: ../app/views/scc_accounts/index.html.erb:3
197
- msgid "Add SCC account"
198
- msgstr "Add SCC account"
161
+ msgid "Test Connection"
162
+ msgstr "Test Connection"
199
163
 
200
- #: ../app/views/scc_accounts/index.html.erb:9
201
- msgid "Products"
164
+ msgid "Test connection for scc_account"
202
165
  msgstr ""
203
166
 
204
- #: ../app/views/scc_accounts/index.html.erb:10
205
- msgid "Last synced"
206
- msgstr "Last synced"
207
-
208
- #: ../app/views/scc_accounts/index.html.erb:11
209
- msgid "Actions"
167
+ msgid "The sync interval is used to periodically update the SCC authentication tokens of any imported products."
210
168
  msgstr ""
211
169
 
212
- #: ../app/views/scc_accounts/index.html.erb:24
213
- msgid "Select products"
170
+ msgid "URL of SUSE for scc_account"
214
171
  msgstr ""
215
172
 
216
- #: ../app/views/scc_accounts/index.html.erb:25
217
- msgid "Sync"
218
- msgstr "Sync"
219
-
220
- #: ../app/views/scc_accounts/index.html.erb:28
221
- msgid "Delete %s?"
173
+ msgid "Unknown"
222
174
  msgstr ""
223
175
 
224
- #: ../app/views/scc_accounts/new.html.erb:1
225
- msgid "Add SUSE Customer Center Account"
226
- msgstr "Add SUSE Customer Center Account"
176
+ msgid "Update SUSE repositories"
177
+ msgstr ""
227
178
 
228
- #: ../app/views/scc_accounts/show.html.erb:25
229
- msgid "SUSE Customer Center"
230
- msgstr "SUSE Customer Center"
179
+ msgid "Update SUSE repositories %s"
180
+ msgstr ""
231
181
 
232
- #: ../app/views/scc_accounts/show.html.erb:36
233
- msgid "Please sync your SUSE subscriptions first."
234
- msgstr "Please sync your SUSE subscriptions first."
182
+ msgid "Update scc_account"
183
+ msgstr ""
235
184
 
236
- #: ../lib/foreman_scc_manager/engine.rb:64
237
- msgid "SUSE Subscriptions"
238
- msgstr "SUSE Subscriptions"
185
+ msgid "Use your 'Organization credentials' obtained from the SUSE Customer Center."
186
+ msgstr ""
239
187
 
240
- #: gemspec.rb:2
241
- msgid "Foreman plugin to sync SUSE Customer Center products and repositories into Katello."
242
- msgstr "Foreman plugin to sync SUSE Customer Center products and repositories into Katello."
188
+ msgid "never synced"
189
+ msgstr ""
@@ -8,8 +8,8 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: foreman_scc_manager 1.0.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2019-11-12 12:27+0000\n"
12
- "PO-Revision-Date: 2019-11-12 12:27+0000\n"
11
+ "POT-Creation-Date: 2020-03-02 13:47+0000\n"
12
+ "PO-Revision-Date: 2020-03-02 13:47+0000\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -116,11 +116,11 @@ msgstr ""
116
116
  msgid "Product already subscribed!"
117
117
  msgstr ""
118
118
 
119
- #: ../app/lib/actions/scc_manager/subscribe_product.rb:35 action_names.rb:21
119
+ #: ../app/lib/actions/scc_manager/subscribe_product.rb:35 action_names.rb:68
120
120
  msgid "Subscribe SCC Product"
121
121
  msgstr ""
122
122
 
123
- #: ../app/lib/actions/scc_manager/sync.rb:27 action_names.rb:22
123
+ #: ../app/lib/actions/scc_manager/sync.rb:27 action_names.rb:69
124
124
  msgid "Sync SUSE subscriptions"
125
125
  msgstr ""
126
126
 
@@ -133,15 +133,15 @@ msgid "Unknown"
133
133
  msgstr ""
134
134
 
135
135
  #: ../app/lib/actions/scc_manager/sync_plan_account_repositories.rb:33
136
- #: action_names.rb:71
136
+ #: action_names.rb:70
137
137
  msgid "Update SUSE repositories"
138
138
  msgstr ""
139
139
 
140
- #: ../app/lib/actions/scc_manager/sync_products.rb:34 action_names.rb:72
140
+ #: ../app/lib/actions/scc_manager/sync_products.rb:34 action_names.rb:71
141
141
  msgid "Sync SUSE subscriptions (Products)"
142
142
  msgstr ""
143
143
 
144
- #: ../app/lib/actions/scc_manager/sync_repositories.rb:33 action_names.rb:73
144
+ #: ../app/lib/actions/scc_manager/sync_repositories.rb:33 action_names.rb:72
145
145
  msgid "Sync SUSE subscriptions (Repositories)"
146
146
  msgstr ""
147
147
 
@@ -182,15 +182,21 @@ msgstr ""
182
182
  msgid "Base URL"
183
183
  msgstr ""
184
184
 
185
- #: ../app/views/scc_accounts/_form.html.erb:16
186
- msgid "Interval"
185
+ #: ../app/views/scc_accounts/_form.html.erb:17
186
+ msgid "Sync interval"
187
187
  msgstr ""
188
188
 
189
189
  #: ../app/views/scc_accounts/_form.html.erb:17
190
+ msgid ""
191
+ "The sync interval is used to periodically update the SCC authentication tokens"
192
+ " of any imported products."
193
+ msgstr ""
194
+
195
+ #: ../app/views/scc_accounts/_form.html.erb:18
190
196
  msgid "Sync Date"
191
197
  msgstr ""
192
198
 
193
- #: ../app/views/scc_accounts/_form.html.erb:24
199
+ #: ../app/views/scc_accounts/_form.html.erb:25
194
200
  msgid "Test Connection"
195
201
  msgstr ""
196
202
 
@@ -242,7 +248,7 @@ msgstr ""
242
248
  msgid "Please sync your SUSE subscriptions first."
243
249
  msgstr ""
244
250
 
245
- #: ../lib/foreman_scc_manager/engine.rb:64
251
+ #: ../lib/foreman_scc_manager/engine.rb:66
246
252
  msgid "SUSE Subscriptions"
247
253
  msgstr ""
248
254
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_scc_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ATIX AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-12 00:00:00.000000000 Z
11
+ date: 2020-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc