From 9972bd4ba8b7680badeabe792988a5146883d3e3 Mon Sep 17 00:00:00 2001 From: anthraxn8b Date: Mon, 22 Jan 2018 13:41:01 +0100 Subject: [PATCH] Added "secrets" as toplevel and inside "service order". --- compose_format/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compose_format/__init__.py b/compose_format/__init__.py index 5223715..41e83f3 100755 --- a/compose_format/__init__.py +++ b/compose_format/__init__.py @@ -4,7 +4,7 @@ class ComposeFormat: - TOPLEVEL_ORDER = ['version', 'services', 'volumes', 'networks'] + TOPLEVEL_ORDER = ['version', 'services', 'volumes', 'networks', 'secrets'] SERVICE_ORDER = [ 'image', 'command', 'entrypoint', 'container_name', 'links', 'volumes_from', 'volumes', 'volume_driver', 'tmpfs', @@ -17,6 +17,7 @@ class ComposeFormat: 'read_only', 'healthcheck', 'env_file', 'environment', + 'secrets', 'cpu_shares', 'cpu_quota', 'cpuset', 'domainname', 'hostname', 'ipc', 'mac_address', 'mem_limit', 'memswap_limit', 'privileged', 'shm_size', 'depends_on', 'extends', 'external_links',