Skip to content

Commit

Permalink
WIP: Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Grant Gainey <ggainey@users.noreply.github.com>
  • Loading branch information
mdellweg and ggainey authored Dec 9, 2024
1 parent face5c1 commit c5e0962
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pulpcore/app/serializers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def to_representation(self, data):
if repo_ver_mapping is not None:
if repo_ver := repo_ver_mapping.get(data.object_id):
return self.repo_ver_url(repo_ver, request=request)
return "<unavailabe>"
return "<unavailable>"
else:
try:
view_name = get_view_name_for_model(model, "detail")
Expand All @@ -229,7 +229,7 @@ def to_representation(self, data):
# Fallback onto normal lookup:
# If the content object was deleted
if data.content_object is None:
return "<unavailabe>"
return "<unavailable>"
try:
if not data.content_object.complete:
return "<unavailable>"
Expand Down

0 comments on commit c5e0962

Please sign in to comment.