Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

cli: enable loading default profiles turnkey #943

Merged
merged 7 commits into from
Mar 29, 2021
Merged
8 changes: 1 addition & 7 deletions cli/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func FileExists(configFile string) (bool, error) {
}

// GetComposeFile returns the path of the compose file, looking up the
// tool's workdir or in the static resources already packaged in the binary
// tool's workdir
func GetComposeFile(isProfile bool, composeName string) (string, error) {
composeFileName := "docker-compose.yml"
serviceType := "services"
Expand All @@ -91,12 +91,6 @@ func GetComposeFile(isProfile bool, composeName string) (string, error) {
return composeFilePath, nil
}

log.WithFields(log.Fields{
adam-stokes marked this conversation as resolved.
Show resolved Hide resolved
"composeFilePath": composeFilePath,
"error": err,
"type": serviceType,
}).Trace("Compose file not found at workdir. Extracting from binary resources")

if err != nil {
log.WithFields(log.Fields{
"composeFileName": composeFileName,
Expand Down