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 421a917 commit b871c7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
7 changes: 3 additions & 4 deletions pulpcore/app/serializers/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,9 @@ class BaseURLField(serializers.CharField):
"""

def to_representation(self, value):
if not settings.CONTENT_ORIGIN:
origin = 'https://pulp/'
#origin = 'http://localhost:5001/'
else:
#origin = 'https://pulp/'
origin = '/'
if settings.CONTENT_ORIGIN:
origin = settings.CONTENT_ORIGIN.strip("/")
prefix = settings.CONTENT_PATH_PREFIX.strip("/")
base_path = value.base_path.strip("/")
Expand Down
1 change: 0 additions & 1 deletion pulpcore/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,6 @@ def pulp_content_url(pulp_settings, pulp_domain_enabled):
url = f"{pulp_settings.CONTENT_ORIGIN}{pulp_settings.CONTENT_PATH_PREFIX}"
if not pulp_settings.CONTENT_ORIGIN:
url = f"https://pulp{pulp_settings.CONTENT_PATH_PREFIX}"
#url = f"http://localhost:5001{pulp_settings.CONTENT_PATH_PREFIX}"

if pulp_domain_enabled:
url += "default/"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def test_content_directory_listing(
content_origin = pulp_status.content_settings.content_origin
if not content_origin:
content_origin = "https://pulp"
#content_origin = "http://localhost:5001"
base_url = urljoin(
content_origin,
pulp_status.content_settings.content_path_prefix,
Expand Down

0 comments on commit b871c7b

Please sign in to comment.