Skip to content

Commit

Permalink
Proper yaml-string formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbovill committed Jan 22, 2024
1 parent 32b16d9 commit 8bde6c3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions python/lsst/ts/IntegrationTests/csc_state_transition.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,15 @@ def __init__(
temp_config = [{self.csc}, {self.state}]
if self.added_config:
temp_config.append(self.added_config)
config = f"data:\n- {temp_config}"
self.configs = (yaml.safe_dump(config),)
yaml_string = yaml.safe_load(
f"""
data:
- {temp_config}
"""
)
self.configs = (
yaml.safe_dump(yaml_string, explicit_start=True, canonical=True),
)


def csc_state_transition() -> None:
Expand Down

0 comments on commit 8bde6c3

Please sign in to comment.