redhat_access 2.1.9 → 2.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3340a5be7d13c6bbdf4193e66f62f824239e7748526bec3f502d21db1d3f7779
4
- data.tar.gz: 65bb258ed50ec19dc481b9c58ca0a906c03aa12266d42f6530298e17ed416267
3
+ metadata.gz: 3f2d7895af2ff247048b38149cfb5d71a001368eaee189077516fa1afb4b4428
4
+ data.tar.gz: 59ddd32c84310572267af5867fa0262d0ef8bdb5eea5ddfe79bdbe0a40410651
5
5
  SHA512:
6
- metadata.gz: 4f1bb0048b6e82f24db3c49eee1c553be5a167ef72ada62cf570d00aae34f08d8d7042161f04f480b5e449ca003b7a0207b08bfa350975c504be50666f65779e
7
- data.tar.gz: cd71cff00e2926154d8ac27b79dfd7078b654219bfcab86708c65b0a35222bbaab4853d35657352f77b0fafe5f81d0a75f927c2b34646e6c3d8d5cc9be946db2
6
+ metadata.gz: b7af6fcd285fc8ca428bc6c6b76f7691bb55cc8bc72e9e5cd123ecf8e7d97aecb99057c738087d814ae3e65dbfc994e143d15a03643ab4f9eedb66dbd31b7cb4
7
+ data.tar.gz: a0e451a84bbbb4619ee4b689142e74f68a4f8a29feb435897910c1217dcd14c46e701f384cb5e51aa97781a03f6d351e57172593f76efdbd447412d12548a2dd
@@ -185,8 +185,7 @@ module RedhatAccess
185
185
 
186
186
  def get_content_hosts(org)
187
187
  if org
188
- host_ids = ::Host::Managed.authorized('view_hosts', ::Host::Managed).where({:organization_id => org.id}).pluck(:id)
189
- Katello::Host::SubscriptionFacet.where(:host_id => host_ids).pluck(:uuid)
188
+ ::Host::Managed.authorized('view_hosts', ::Host::Managed).joins(:subscription_facet).rewhere({:organization_id => org.id}).pluck("katello_subscription_facets.uuid")
190
189
  else
191
190
  raise(RecordNotFound, 'Organization not found or invalid')
192
191
  end
@@ -1,3 +1,3 @@
1
1
  module RedhatAccess
2
- VERSION = "2.1.9"
2
+ VERSION = "2.1.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redhat_access
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.9
4
+ version: 2.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lindani Phiri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-16 00:00:00.000000000 Z
11
+ date: 2019-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redhat_access_lib