pipelines: simplify and lint aws-pcluster-* (#47989)

This commit is contained in:
Massimiliano Culpo
2024-12-10 12:16:51 +01:00
committed by GitHub
parent 30c00353d4
commit b50dbb8604
3 changed files with 59 additions and 163 deletions

View File

@@ -416,10 +416,12 @@ def dump_config(data, stream, *, default_flow_style=False, blame=False):
if blame:
handler = ConfigYAML(yaml_type=YAMLType.ANNOTATED_SPACK_CONFIG_FILE)
handler.yaml.default_flow_style = default_flow_style
handler.yaml.width = maxint
return _dump_annotated(handler, data, stream)
handler = ConfigYAML(yaml_type=YAMLType.SPACK_CONFIG_FILE)
handler.yaml.default_flow_style = default_flow_style
handler.yaml.width = maxint
return handler.dump(data, stream)