Skip to content

Commit

Permalink
Backport re-evaluate the execution order of the elif condition
Browse files Browse the repository at this point in the history
closes pulp#1147
  • Loading branch information
lubosmj committed Feb 27, 2023
1 parent e3ca2a8 commit 7109282
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/1147.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed a method for determining the media type of manifests when syncing content.
2 changes: 1 addition & 1 deletion pulp_container/app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def determine_media_type(content_data, response):
# translate v1 signed media_type
if media_type == MEDIA_TYPE.MANIFEST_V1_SIGNED:
return MEDIA_TYPE.MANIFEST_V1
elif media_type in (MANIFEST_MEDIA_TYPES.IMAGE or MANIFEST_MEDIA_TYPES.LIST):
elif media_type in MANIFEST_MEDIA_TYPES.IMAGE or media_type in MANIFEST_MEDIA_TYPES.LIST:
return media_type
else:
pass
Expand Down

0 comments on commit 7109282

Please sign in to comment.