Skip to content

Commit

Permalink
Merge pull request pulp#464 from gerrod3/ra_url_fix
Browse files Browse the repository at this point in the history
Fix function parameters for get_remote_artifact_url for pulpcore 3.17
  • Loading branch information
gerrod3 authored Nov 8, 2021
2 parents 47f22a3 + 1cc87a1 commit cfcdb32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulp_python/app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def content_handler(self, path):
url = URL(file.storage.url(file.name, parameters=parameters), encoded=True)
# Trick the content app to stream the metadata from the remote storage
remote = PythonRemote(name="Redirect", url=str(url), policy="streamed")
remote.get_remote_artifact_url = lambda x: str(url)
remote.get_remote_artifact_url = lambda *args, **kwargs: str(url)
setattr(self, "publication", None)
setattr(self, "repository", None)
setattr(self, "remote", remote)
Expand Down

0 comments on commit cfcdb32

Please sign in to comment.