Skip to content

Commit 52830fb

Browse files
committed
[ISV-3366] Ignore deleted package lock objects
When searching for existing package lock ignore object with deleted flag set to true. The deleted flag was recently added to be able reuse package multiple times.
1 parent c248ef8 commit 52830fb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

operator-pipeline-images/operatorcert/entrypoints/reserve_operator_name.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def check_operator_name_registered_for_association(args: Any) -> None:
4141
rsp = pyxis.get(
4242
urljoin(
4343
args.pyxis_url,
44-
f"v1/operators/packages?filter=association=={args.association}",
44+
"v1/operators/packages?"
45+
f"filter=association=={args.association};deleted!=true",
4546
)
4647
)
4748

@@ -79,7 +80,8 @@ def check_operator_name(args: Any) -> None:
7980
rsp = pyxis.get(
8081
urljoin(
8182
args.pyxis_url,
82-
f"v1/operators/packages?filter=package_name=={args.operator_name}",
83+
"v1/operators/packages?"
84+
f"filter=package_name=={args.operator_name};deleted!=true",
8385
)
8486
)
8587

0 commit comments

Comments
 (0)