cli: Strip off "*" subslot binding operator as well
:= means "bind to subslot", and :* means don't bind. We should strip
both.
BUG=b:295550926
TEST=CQ passes
Change-Id: If08cf467d99b74f601050a1abee18bd82881e00c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4775885
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Auto-Submit: Matt Turner <msturner@google.com>
Commit-Queue: Matt Turner <msturner@google.com>
Tested-by: Matt Turner <msturner@google.com>
diff --git a/cli/deploy.py b/cli/deploy.py
index 7745924..a31c911 100644
--- a/cli/deploy.py
+++ b/cli/deploy.py
@@ -260,7 +260,7 @@
# Separate the slot qualifier and strip off subslot binding operator
if ":" in cp:
cp, slot = cp.split(":")
- for delim in ("=",):
+ for delim in ("=", "*"):
slot = slot.split(delim, 1)[0]
# Strip version wildcards (right), comparators (left).