From a0a84e2a21fd166dffb97116c2b4e001cb7b3a38 Mon Sep 17 00:00:00 2001 From: tengqm Date: Sun, 15 Feb 2015 21:28:18 +0800 Subject: [PATCH] Always use block for YAML dumping --- senlinclient/common/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/senlinclient/common/utils.py b/senlinclient/common/utils.py index 53630d19..aa5738a5 100644 --- a/senlinclient/common/utils.py +++ b/senlinclient/common/utils.py @@ -35,7 +35,7 @@ exit = cliutils.exit supported_formats = { "json": lambda x: jsonutils.dumps(x, indent=2), - "yaml": yaml.safe_dump + "yaml": lambda x: yaml.safe_dump(x, default_flow_style=False) }