diff --git a/src/operator_repo/checks/bundle.py b/src/operator_repo/checks/bundle.py index 5e0f93c..ab2d3bf 100644 --- a/src/operator_repo/checks/bundle.py +++ b/src/operator_repo/checks/bundle.py @@ -11,7 +11,9 @@ def check_operator_name(bundle: Bundle) -> Iterator[CheckResult]: """Check if the operator names used in CSV, metadata and filesystem are consistent""" name = bundle.annotations.get("operators.operatorframework.io.bundle.package.v1") if name is None: - yield Fail(f"Bundle does not define the operator name in annotations.yaml") + yield Fail( + bundle, f"Bundle does not define the operator name in annotations.yaml" + ) return if name != bundle.csv_operator_name: yield Fail( diff --git a/src/operator_repo/checks/operator.py b/src/operator_repo/checks/operator.py index 7e8417c..130d622 100644 --- a/src/operator_repo/checks/operator.py +++ b/src/operator_repo/checks/operator.py @@ -18,7 +18,7 @@ def check_upgrade(operator: Operator) -> Iterator[CheckResult]: if dangling_bundles: yield Fail( operator, - f"Channel {channel} has dangling bundles: {dangling_bundles}.", + f"Channel {channel} has dangling bundles: {dangling_bundles}", ) except Exception as exc: yield Fail(operator, str(exc))