Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed Jun 4, 2024
1 parent da4c0a4 commit a1f7b6c
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions cylc/flow/xtriggers/suite_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from cylc.flow import LOG
import cylc.flow.flags
from cylc.flow.xtriggers.workflow_state import workflow_state
from cylc.flow.xtriggers.workflow_state import _workflow_state_backcompat

if not cylc.flow.flags.cylc7_back_compat:
LOG.warning(
Expand Down Expand Up @@ -72,15 +72,6 @@ def suite_state(suite, task, point, offset=None, status='succeeded',
to this xtrigger.
"""
if message is not None:
selector = message
is_message = True
else:
selector = status
is_message = False

return workflow_state(
f"{suite}//{point}/{task}:{selector}",
offset=offset, is_message=is_message,
alt_cylc_run_dir=cylc_run_dir
return _workflow_state_backcompat(
suite, task, point, offset, status, message, cylc_run_dir
)

0 comments on commit a1f7b6c

Please sign in to comment.