Skip to content

Commit

Permalink
#99 Include quotes in the rose-suite.conf values (to pass cylc valid…
Browse files Browse the repository at this point in the history
…ation)
  • Loading branch information
Chris Blanton authored and Chris Blanton committed Jul 30, 2024
1 parent f94a102 commit e482b17
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fre/pp/configure_script_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,12 @@ def set_rose_suite(yamlfile,rose_suite):
for i in pp.values():
if not isinstance(i,list):
for key,value in i.items():
rose_suite.set(keys=['template variables', key.upper()], value=f'{value}')
# 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 dirs is not None:
for key,value in dirs.items():
rose_suite.set(keys=['template variables', key.upper()], value=f'{value}')
rose_suite.set(keys=['template variables', key.upper()], value=f"'{value}'")

####################
def set_rose_apps(yamlfile,rose_regrid,rose_remap):
Expand Down

0 comments on commit e482b17

Please sign in to comment.