Skip to content

Commit

Permalink
don't fail when searching for a content credential for a repository
Browse files Browse the repository at this point in the history
do not remove org from repository params

while working with repositories doesn't need an org (just a product), we
might need the org to work with other entities like content credentials.

Fixes: e2b421f
  • Loading branch information
evgeni committed Jul 25, 2023
1 parent 7e36b39 commit 35f33fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/bz2224122-repo-org-scope.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- repository - don't fail when searching for a content credential for a repository (https://bugzilla.redhat.com/show_bug.cgi?id=2224122)
3 changes: 0 additions & 3 deletions plugins/modules/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,6 @@ def main():
module.foreman_params['http_proxy_policy'] = 'none' if module.foreman_params['ignore_global_proxy'] else 'global_default_http_proxy'

with module.api_connection():
if not module.desired_absent:
module.auto_lookup_entities()
module.foreman_params.pop('organization')
module.run()


Expand Down

0 comments on commit 35f33fd

Please sign in to comment.