mirror of
https://github.com/docker/compose.git
synced 2026-08-28 12:23:49 +00:00
Falling back to default project name when COMPOSE_PROJECT_NAME is set to empty
Signed-off-by: Dimitar Bonev <dimitar.bonev@gmail.com>
This commit is contained in:
parent
40d69675f3
commit
34ccb90d7e
2 changed files with 8 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ def get_project_name(working_dir, project_name=None):
|
|||
return re.sub(r'[^a-z0-9]', '', name.lower())
|
||||
|
||||
project_name = project_name or os.environ.get('COMPOSE_PROJECT_NAME')
|
||||
if project_name is not None:
|
||||
if project_name:
|
||||
return normalize_name(project_name)
|
||||
|
||||
project = os.path.basename(os.path.abspath(working_dir))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue