Skip to content

Instantly share code, notes, and snippets.

@daviddavis
Created March 24, 2021 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daviddavis/8ab24a68a72035d6a3bfc7412c992928 to your computer and use it in GitHub Desktop.
Save daviddavis/8ab24a68a72035d6a3bfc7412c992928 to your computer and use it in GitHub Desktop.
diff --git a/pulpcore/plugin/stages/artifact_stages.py b/pulpcore/plugin/stages/artifact_stages.py
index 570446c..87b1454 100644
--- a/pulpcore/plugin/stages/artifact_stages.py
+++ b/pulpcore/plugin/stages/artifact_stages.py
@@ -71,7 +71,8 @@ class QueryExistingArtifacts(Stage):
for d_content in batch:
for d_artifact in d_content.d_artifacts:
if d_artifact.artifact._state.adding:
- _check_for_forbidden_checksume_type(d_artifact.artifact)
+ if not d_artifact.deferred_download:
+ _check_for_forbidden_checksume_type(d_artifact.artifact)
for digest_type in Artifact.COMMON_DIGEST_FIELDS:
digest_value = getattr(d_artifact.artifact, digest_type)
if digest_value:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment