summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/util/spack_yaml.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/util/spack_yaml.py b/lib/spack/spack/util/spack_yaml.py
index 200025411e..04f88faafa 100644
--- a/lib/spack/spack/util/spack_yaml.py
+++ b/lib/spack/spack/util/spack_yaml.py
@@ -233,8 +233,8 @@ def return_string_when_no_stream(func):
@return_string_when_no_stream
def dump(data, stream=None, default_flow_style=False):
handler = ConfigYAML(yaml_type=YAMLType.GENERIC_YAML)
- handler.default_flow_style = default_flow_style
- handler.width = maxint
+ handler.yaml.default_flow_style = default_flow_style
+ handler.yaml.width = maxint
return handler.dump(data, stream=stream)