Skip to content

Commit

Permalink
fixes #11970 - update to allow filtering puppet modules by repository
Browse files Browse the repository at this point in the history
This change is so that if a user invokes the puppet modules
controller index (aka repository content) with a repository,
the result set returned is for only the requested repository.

Without this change, all puppet modules are returned.
  • Loading branch information
bbuckingham committed Sep 25, 2015
1 parent 98c7b7d commit 5e35ee6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -74,7 +74,7 @@ def compare
def index_relation
collection = resource_class.scoped
collection = filter_by_repos(Repository.readable, collection)
collection = filter_by_repos([@repo], collection) if @repo && !@repo.puppet?
collection = filter_by_repos([@repo], collection) if @repo
collection = filter_by_content_view_version(@version, collection) if @version
collection = filter_by_environment(@environment, collection) if @environment
collection = filter_by_repos(Repository.readable.in_organization(@organization), collection) if @organization
Expand Down

0 comments on commit 5e35ee6

Please sign in to comment.