katello 3.12.2 → 3.12.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of katello might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3ef2a6f301c82689e48ffc4b9c4083b30520f8fd5452e9289cbdea4cc24b9d4
4
- data.tar.gz: 7d2ce23015ff638867ab8ee8bd9869908119787adfea5cbee4f670503354a1fc
3
+ metadata.gz: 57454653134acc1d275c22a1e8df7bed953b3cc15fbc45cf6a519f197867d2d5
4
+ data.tar.gz: 07ed05ad436f0cf25cc31324fdf0d613eeed837b55926573dfc874505556ce1a
5
5
  SHA512:
6
- metadata.gz: 463318dc443c762c2c8ff801ef80b27832393bae009df0cf3db72a57faa552a1f04aea15ea44c30d994c272a15372a25d7ae74846de396f87d9bc2c8832ba11a
7
- data.tar.gz: 8863c9e32f07ee9c3acbc3abfe3fcd0daacef2607a2e2b2dee904838f1d817e04f7c7b74546840c9949ed0a18b223dd53ca381693de6f07a4fb8b4e745d36593
6
+ metadata.gz: a177b3f0adfd8a8a02c697faf17ac209f3c9adad880006087c1fa0fa59f27967f216abea195df1ca840feb733c77a5d45e95d6381abd3ef33f6f17346eecc73a
7
+ data.tar.gz: 2dd25b82086662e95942e799f2b8822be30ce6b8d66597b09acdab2d93596867fe82a8dec7052f8498d4672262f28aa963ad1e9dcbfd7f21b3c1a8a9e43e6eb8
@@ -266,9 +266,17 @@ module Katello
266
266
 
267
267
  if hosts_size == 1
268
268
  host = hosts.first
269
- found_uuid = host.fact_values.find { |fv| fv.fact_name_id == uuid_fact_id }
270
269
 
271
- return host if host.name == host_name && (host.build || found_uuid&.value == host_uuid)
270
+ if host.name == host_name
271
+ unless host.build
272
+ found_uuid = host.fact_values.where(fact_name_id: uuid_fact_id).first
273
+ if found_uuid && found_uuid.value != host_uuid
274
+ fail Katello::Errors::RegistrationError, _("This host is reporting a DMI UUID that differs from the existing registration.")
275
+ end
276
+ end
277
+
278
+ return host
279
+ end
272
280
  end
273
281
 
274
282
  hostnames = hosts.pluck(:name).sort.join(', ')
@@ -1,3 +1,3 @@
1
1
  module Katello
2
- VERSION = "3.12.2".freeze
2
+ VERSION = "3.12.3".freeze
3
3
  end
@@ -130,6 +130,7 @@ class SubscriptionsTable extends Component {
130
130
  rows,
131
131
  subscriptions,
132
132
  tableColumns,
133
+ toggleSubscriptionGroup: this.toggleSubscriptionGroup,
133
134
  inlineEditController: this.getInlineEditController(),
134
135
  selectionController: this.getSelectionController(),
135
136
  };
@@ -15,6 +15,7 @@ const Table = ({
15
15
  rows,
16
16
  editing,
17
17
  groupedSubscriptions,
18
+ toggleSubscriptionGroup,
18
19
  }) => {
19
20
  const allSubscriptionResults = subscriptions.results;
20
21
 
@@ -30,7 +31,7 @@ const Table = ({
30
31
  // the group contains more then one subscription
31
32
  groupedSubscriptions[rowData.product_id].subscriptions.length > 1,
32
33
  isCollapsed: ({ rowData }) => !groupedSubscriptions[rowData.product_id].open,
33
- toggle: ({ rowData }) => this.toggleSubscriptionGroup(rowData.product_id),
34
+ toggle: ({ rowData }) => toggleSubscriptionGroup(rowData.product_id),
34
35
  };
35
36
 
36
37
  const alwaysDisplayColumns = ['select'];
@@ -95,6 +96,7 @@ Table.propTypes = {
95
96
  results: PropTypes.array,
96
97
  }).isRequired,
97
98
  loadSubscriptions: PropTypes.func.isRequired,
99
+ toggleSubscriptionGroup: PropTypes.func.isRequired,
98
100
  selectionController: PropTypes.shape({}).isRequired,
99
101
  inlineEditController: PropTypes.shape({
100
102
  onCancel: PropTypes.func,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katello
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.12.2
4
+ version: 3.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - N/A
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-07 00:00:00.000000000 Z
11
+ date: 2019-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails