Merge pull request #3032 from dnephin/multiple_files_from_env_var

Support multiple files in COMPOSE_FILE env var
This commit is contained in:
Aanand Prasad 2016-03-03 17:23:22 +00:00
commit 9e242cdc75
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):