Support multiple files in COMPOSE_FILE env var.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-02-26 15:55:06 -08:00
parent f75408923e
commit 53a3d14046
3 changed files with 46 additions and 8 deletions

View file

@ -58,8 +58,10 @@ def get_config_path_from_options(options):
if file_option:
return file_option
config_file = os.environ.get('COMPOSE_FILE')
return [config_file] if config_file else None
config_files = os.environ.get('COMPOSE_FILE')
if config_files:
return config_files.split(os.pathsep)
return None
def get_client(verbose=False, version=None):