redhat_access 2.0.16 → 2.0.17

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: 694eac8129f74764353741ff178dc83d0bf2a1937b0e93505abc001aa4335acc
4
- data.tar.gz: 0f24b14809dac5ae7d3051294f7031d24159a5495df8f85cbe66db70233968c3
3
+ metadata.gz: 6371a5cad3c18e88c70408d1fddf3d2ea0db44893f423dab1208de6f7a469b90
4
+ data.tar.gz: 83cc4f4d0c51fc90b6d20d47680091251d7a065781b31bf745eeb724aa40b9ce
5
5
  SHA512:
6
- metadata.gz: 53256588f2deff662f548b5fa02cf4efc6be633c75579a68f2a769ec86d82442dfaa9dd0fc6bd4564f88eecec35a0cc10860e50b5b9278644e73da53969d5040
7
- data.tar.gz: fb7725b6bec905588e84f7e4c3501713cc0a6620efda7e13b141992e59e6125d85f08fc6bbb89231f8e09da9d228cf02636a97b7ad797e5bb6f33b4cfe827c97
6
+ metadata.gz: 0a8f89479cc68f81307e9dc42af35fa99c2fbad1defcdba3ac2e58b51b73e172ffbce8d638ce0ef803bbc00d25468a8beee761a5b3563cc1dcb6e96091b8a403
7
+ data.tar.gz: 688d2fa3bd9745d1bc6fb6a5892023a8b91a5c5441d999a3edd38e75a7c1b418b8a9e2ffe581d7b7f660fbcbd35e566cd14ff4fd8b7bd3fa2c5e8c2df82ecb7c
@@ -181,8 +181,7 @@ module RedhatAccess
181
181
 
182
182
  def get_content_hosts(org)
183
183
  if org
184
- host_ids = ::Host::Managed.authorized('view_hosts', ::Host::Managed).where({:organization_id => org.id}).pluck(:id)
185
- Katello::Host::SubscriptionFacet.where(:host_id => host_ids).pluck(:uuid)
184
+ ::Host::Managed.authorized('view_hosts', ::Host::Managed).joins(:subscription_facet).rewhere({:organization_id => org.id}).pluck("katello_subscription_facets.uuid")
186
185
  else
187
186
  raise(RecordNotFound, 'Organization not found or invalid')
188
187
  end
@@ -1,3 +1,3 @@
1
1
  module RedhatAccess
2
- VERSION = "2.0.16"
2
+ VERSION = "2.0.17"
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.0.16
4
+ version: 2.0.17
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