Skip to content

Commit

Permalink
Merge pull request #267 from wxtim/fix.no_preconfigure_without_rose-s…
Browse files Browse the repository at this point in the history
…uite.conf

Exit immediately if no rose suite.conf
  • Loading branch information
oliver-sanders authored Dec 5, 2023
2 parents 4862c06 + f09bdf9 commit 4e9f3d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cylc/rose/entry_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@

def pre_configure(srcdir: Path, opts: 'Values') -> dict:
"""Run before the Cylc configuration is read."""
if not rose_config_exists(srcdir):
# nothing to do here
return {}

# load the Rose config
config_tree = load_rose_config(Path(srcdir), opts=opts)

Expand All @@ -53,6 +57,7 @@ def post_install(srcdir: Path, rundir: str, opts: 'Values') -> bool:
if not rose_config_exists(srcdir):
# nothing to do here
return False

_rundir: Path = Path(rundir)

# transfer the rose-suite.conf file
Expand Down

0 comments on commit 4e9f3d9

Please sign in to comment.