Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Fix comparison with non doozer model.Missing
Browse files Browse the repository at this point in the history
  • Loading branch information
jupierce committed Jun 2, 2022
1 parent d497fed commit 019840e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doozerlib/cli/release_gen_payload.py
Expand Up @@ -20,7 +20,7 @@
from doozerlib.util import red_print, go_suffix_for_arch, brew_arch_for_go_arch, isolate_nightly_name_components, convert_remote_git_to_https, go_arch_for_brew_arch
from doozerlib.assembly import AssemblyTypes, assembly_basis, AssemblyIssue, AssemblyIssueCode
from doozerlib import exectools
from doozerlib.model import Model, Missing
from doozerlib.model import Model
from doozerlib.exceptions import DoozerFatalError
from doozerlib.util import find_manifest_list_sha

Expand Down Expand Up @@ -485,9 +485,9 @@ def update_single_arch_istags(apiobj: oc.APIObject):
nonlocal adding_tags

new_annotations = dict()
if apiobj.model.metadata.annotations is not Missing:
if apiobj.model.metadata.annotations is not oc.Missing:
# We must preserve annotations as they contain release controller configuration information
new_annotations = apiobj.model.metadata.annotations.primitive()
new_annotations = apiobj.model.metadata.annotations._primitive()
new_annotations.pop("release.openshift.io/inconsistency", None) # Remove old inconsistency information if it exists

new_annotations.update(PayloadGenerator.build_inconsistency_annotation(assembly_issues))
Expand Down

0 comments on commit 019840e

Please sign in to comment.