Skip to content

Commit

Permalink
#99 Don't quote pythonic booleans in rose-suite.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Blanton authored and Chris Blanton committed Jul 30, 2024
1 parent e482b17 commit b280d50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fre/pp/configure_script_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ def set_rose_suite(yamlfile,rose_suite):
for key,value in i.items():
# rose-suite.conf is somewhat finicky with quoting
# cylc validate will reveal any complaints
rose_suite.set(keys=['template variables', key.upper()], value=f"'{value}'")
if isinstance(value, bool):
rose_suite.set(keys=['template variables', key.upper()], value=f"{value}")
else:
rose_suite.set(keys=['template variables', key.upper()], value=f"'{value}'")
if dirs is not None:
for key,value in dirs.items():
rose_suite.set(keys=['template variables', key.upper()], value=f"'{value}'")
Expand Down

0 comments on commit b280d50

Please sign in to comment.