From 03def55d325afc1ef87e76c465be2ba1110ffb64 Mon Sep 17 00:00:00 2001 From: Hilary James Oliver Date: Wed, 12 Jun 2024 03:11:56 +0000 Subject: [PATCH] strip trailing slash --- cylc/flow/scripts/workflow_state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cylc/flow/scripts/workflow_state.py b/cylc/flow/scripts/workflow_state.py index 87a8cd71fe6..f5621bd299d 100755 --- a/cylc/flow/scripts/workflow_state.py +++ b/cylc/flow/scripts/workflow_state.py @@ -359,7 +359,7 @@ def main(parser: COP, options: 'Values', *ids: str) -> None: if len(ids) != 1: raise InputError("Please give a single ID") - id_ = ids[0] + id_ = ids[0].rstrip('/') # might get 'id/' due to autcomplete if any( [