redhat_access 2.0.3 → 2.0.4

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
  SHA1:
3
- metadata.gz: 4de697c1c4c7439692e44c26f10f4aa8dde8718a
4
- data.tar.gz: 2797621bb4965a46bc6c23d49e46eab5db035cab
3
+ metadata.gz: 8ba92f4f84078298eddd26c5b54fbb4b0f75f768
4
+ data.tar.gz: c4ca95d1ebefda0a1e609354396a75facfd7593e
5
5
  SHA512:
6
- metadata.gz: d46e13f22eb5c71839087d89b0fa9876befa42d83b2e8788dcf0c962134698af5028970c87e613a1833d73e4cd26de1e7366e925bfae8cd37be9d0d5bd89493d
7
- data.tar.gz: c3b3b069c3c60364435b22c36fa555b18b2b7a4d4d4f1e6cd0f76c70211bffdc1537adb95502308871af6356b854564677ca41e1768c26712b33484c30cd4538
6
+ metadata.gz: 81ee3d3a8538e91732e0535599f1654db68d5b97a18f7522c35718db5e3776e937f0583540e1493284b7bc71428350e027fb32e3be4bedb5c0fb74176bb97d9f
7
+ data.tar.gz: ff599f2ec369ac54c7aaa0157e82577bea72057ad297fcdd4aa295c4e7a7be17d01e7f29da0cbaba3dc7f25cd8859e3ef22857ac92a30f13933ea41c363f8f17
@@ -168,8 +168,8 @@ module RedhatAccess
168
168
 
169
169
  def get_content_hosts(org)
170
170
  if org
171
- Katello::Host::SubscriptionFacet.joins(:host).where(:hosts => {:host_id => ::Host::Managed.authorized('view_hosts', ::Host::Managed)},
172
- :hosts => {:organization_id => org.id}).pluck(:uuid)
171
+ host_ids = ::Host::Managed.authorized('view_hosts', ::Host::Managed).where({:organization_id => org.id}).pluck(:id)
172
+ Katello::Host::SubscriptionFacet.where(:host_id => host_ids).pluck(:uuid)
173
173
  else
174
174
  raise(RecordNotFound, 'Organization not found or invalid')
175
175
  end
@@ -1,3 +1,3 @@
1
1
  module RedhatAccess
2
- VERSION = "2.0.3"
2
+ VERSION = "2.0.4"
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.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lindani Phiri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-02 00:00:00.000000000 Z
11
+ date: 2017-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redhat_access_lib