Skip to content

Commit

Permalink
.get(dependency)
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuel44 committed Aug 12, 2024
1 parent 3d87c1b commit 79e9bb8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions utils/compare_dependency_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Discrepancy(NamedTuple):
def __str__(self) -> str:
return (
f"{self.dependency} is {self.in_image or 'missing'} in {self.image}, "
f"but {self.in_reference or 'missing'} in the reference image. "
f"but {self.in_reference or 'missing'} in the {self.image} image. "
"This discrepancy may cause issues when running content."
)

Expand Down Expand Up @@ -170,8 +170,8 @@ def compare_constraints(images_contained_in_native: list[str]):
Discrepancy(
dependency=dependency,
image=PY3_TOOLS_UBI_IMAGE,
in_image=py3_tools_ubi_constraints[dependency],
in_reference=python3_ubi_constraints[dependency],
in_image=py3_tools_ubi_constraints.get(dependency),
in_reference=python3_ubi_constraints.get(dependency),
path=get_dependency_file_path(PY3_TOOLS_UBI_IMAGE),
)
for dependency in sorted(py3_tools_ubi_keys.difference(python3_ubi_keys))
Expand All @@ -182,12 +182,12 @@ def compare_constraints(images_contained_in_native: list[str]):
Discrepancy(
dependency=dependency,
image=PY3_TOOLS_UBI_IMAGE,
in_image=py3_tools_ubi_constraints[dependency],
in_reference=python3_ubi_constraints[dependency],
in_image=py3_tools_ubi_constraints.get(dependency),
in_reference=python3_ubi_constraints.get(dependency),
path=get_dependency_file_path(PY3_TOOLS_UBI_IMAGE),
)
for dependency in sorted(py3_tools_ubi_keys.intersection(python3_ubi_keys))
if py3_tools_ubi_constraints[dependency] != python3_ubi_constraints[dependency]
if py3_tools_ubi_constraints.get(dependency) != python3_ubi_constraints.get(dependency)
)
)

Expand Down

0 comments on commit 79e9bb8

Please sign in to comment.