Skip to content

Commit

Permalink
draft
Browse files Browse the repository at this point in the history
  • Loading branch information
git-hyagi committed Jan 14, 2025
1 parent b871c7b commit 50ad87f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pulp_file/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,15 @@ def _file_distribution_factory(pulp_domain=None, **body):
kwargs = {}
if pulp_domain:
kwargs["pulp_domain"] = pulp_domain
return gen_object_with_cleanup(file_bindings.DistributionsFileApi, data, **kwargs)
file_distribution = gen_object_with_cleanup(file_bindings.DistributionsFileApi, data, **kwargs)

# if the base_url starts with / it means content_origin is not defined
if file_distribution.base_url.startswith("/"):
file_distribution.base_url.replace("/", "https://pulp/", 1)
#file_distribution.base_url="https://pulp/"
return file_distribution



return _file_distribution_factory

Expand Down

0 comments on commit 50ad87f

Please sign in to comment.