Merge pull request #10597 from ndeloof/ComposeProjectName

fix support for project name set by COMPOSE_PROJECT_NAME env var
This commit is contained in:
Guillaume Lours 2023-05-22 20:24:13 +02:00 committed by GitHub
commit 544b579cb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ func (o *ProjectOptions) toProjectName() (string, error) {
return o.ProjectName, nil
}
envProjectName := os.Getenv("ComposeProjectName")
envProjectName := os.Getenv(ComposeProjectName)
if envProjectName != "" {
return envProjectName, nil
}