Browse Source

Discard env_file section on convert/config

Signed-off-by: Ulysses Souza <[email protected]>
Ulysses Souza 3 years ago
parent
commit
a279c3a934
1 changed files with 3 additions and 1 deletions
  1. 3 1
      cmd/compose/convert.go

+ 3 - 1
cmd/compose/convert.go

@@ -116,7 +116,9 @@ func runConvert(ctx context.Context, backend api.Service, opts convertOptions, s
 	project, err := opts.toProject(services,
 		cli.WithInterpolation(!opts.noInterpolate),
 		cli.WithResolvedPaths(true),
-		cli.WithNormalization(!opts.noNormalize))
+		cli.WithNormalization(!opts.noNormalize),
+		cli.WithDiscardEnvFile)
+
 	if err != nil {
 		return err
 	}