Improve yaml output of "openstack overcloud node provision"

The non-default flow style is better at spreading the yaml over
multiple lines, which is better for readability.

Change-Id: Ibb0c6fb927eca279724cd18e4f8fc9669c02e957
Blueprint: nova-less-deploy
This commit is contained in:
Steve Baker 2019-06-13 12:18:36 +12:00
parent 8d84884f3e
commit 73bc6f941e
1 changed files with 3 additions and 3 deletions

View File

@ -511,7 +511,7 @@ class ProvisionNode(command.Command):
ssh_user_name=parsed_args.overcloud_ssh_user)
with open(parsed_args.output, 'w') as fp:
yaml.safe_dump(output['environment'], fp)
yaml.safe_dump(output['environment'], fp, default_flow_style=False)
print('Nodes deployed successfully, add %s to your deployment' %
parsed_args.output)
print('Nodes deployed successfully, add %s to your deployment '
'environment' % parsed_args.output)