pulp / pulp/squeezer

Support for custom API_ROOT

Open
#145 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
Python
Stars
29
Forks
45
Avg merge
4h 45m
Merged PRs (30d)
1

Description

Pulp squeezer currently does not support custom API_ROOT environments from Pulp. As an example, the following hotfix can be used if you use / as API_ROOT:

find . -name pulp.py -exec sed -i '/doc_path/s/\/pulp//g' {} \;

Cause: https://github.com/pulp/squeezer/blob/develop/plugins/module_utils/pulp.py#L74

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with plugins/module_utils/pulp.py at line 74, where the issue identifies the API path handling. Compare that behavior with the documented hotfix and trace how API_ROOT is represented in the module. Done means Pulp environments using a custom API_ROOT, including /, no longer require the workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible, python
Domain
api, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.