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:
parent
8d84884f3e
commit
73bc6f941e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue