Fix unassigned new_manifest_type variable

This fixes the regression caused by the recent change[1], and ensures
the new_manifest_type variable is defined in any code paths.

[1] I04f6ac171b10af7a294819d6248eac641090cc49

Closes-Bug: #2026711
Change-Id: I1381b4f7f4f7808d29e7f1aa73e7c0cd06acc795
This commit is contained in:
Takashi Kajinami 2023-07-10 17:54:08 +09:00
parent 169dc4eb35
commit 91f875acb7
1 changed files with 1 additions and 0 deletions

View File

@ -1962,6 +1962,7 @@ class PythonImageUploader(BaseImageUploader):
manifest_type = MEDIA_MANIFEST_V1_SIGNED
else:
manifest_type = MEDIA_MANIFEST_V1
new_manifest_type = manifest_type
else:
# NOTE(mwhahaha): always force docker media format if not set or
# is explicitly OCI because buildah uses OCI by default but we