mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-03-02 01:10:20 +00:00
Change YAML output to work around go-gypsy
This commit is contained in:
@@ -63,6 +63,6 @@ for service_name, popen_object in push_operations.items():
|
||||
|
||||
# Write the new docker-compose.yml file.
|
||||
with open(output_file, "w") as f:
|
||||
yaml.safe_dump(stack, f)
|
||||
yaml.safe_dump(stack, f, default_flow_style=False)
|
||||
|
||||
print("Wrote new compose file: {}".format(output_file))
|
||||
|
||||
@@ -41,5 +41,5 @@ for service_name, service in stack.items():
|
||||
if service_name in ports:
|
||||
service["ports"] = [ ports[service_name] ]
|
||||
|
||||
yaml.safe_dump(stack, open(output_file, "w"))
|
||||
yaml.safe_dump(stack, open(output_file, "w"), default_flow_style=False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user