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 +4 -4
- data/app/models/katello/host/subscription_facet.rb +10 -2
- data/lib/katello/version.rb +1 -1
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTable.js +1 -0
- data/webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Table.js +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57454653134acc1d275c22a1e8df7bed953b3cc15fbc45cf6a519f197867d2d5
|
4
|
+
data.tar.gz: 07ed05ad436f0cf25cc31324fdf0d613eeed837b55926573dfc874505556ce1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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(', ')
|
data/lib/katello/version.rb
CHANGED
@@ -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 }) =>
|
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.
|
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-
|
11
|
+
date: 2019-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|