app/lib/katello/resources/candlepin/owner.rb in katello-3.17.3 vs app/lib/katello/resources/candlepin/owner.rb in katello-3.18.0.rc1

- old
+ new

@@ -3,9 +3,14 @@ module Candlepin class Owner < CandlepinResource extend OwnerResource class << self + def all + response = self.get(path, default_headers) + JSON.parse(response.body) + end + # Set the contentPrefix at creation time so that the client will get # content only for the org it has been subscribed to def create(key, description) attrs = {:key => key, :displayName => description, :contentPrefix => "/#{key}/$env"} owner_json = self.post(path, attrs.to_json, self.default_headers).body