Skip to content

Commit 798c7c1

Browse files
authored
Merge pull request #4327 from GodloveD/backport-encrypt-env-var-fix
Fix cli to use pem path envvar
2 parents 393bae0 + 91da2e7 commit 798c7c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/internal/cli/build_linux.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -375,13 +375,13 @@ func getEncryptionMaterial(cmd *cobra.Command) (crypt.KeyInfo, error) {
375375
}
376376

377377
if pemPathEnvOK {
378-
exists, err := fs.FileExists(encryptionPEMPath)
378+
exists, err := fs.FileExists(pemPathEnv)
379379
if err != nil {
380-
sylog.Fatalf("Unable to verify existence of %s: %v", encryptionPEMPath, err)
380+
sylog.Fatalf("Unable to verify existence of %s: %v", pemPathEnv, err)
381381
}
382382

383383
if !exists {
384-
sylog.Fatalf("Specified PEM file %s: does not exist.", encryptionPEMPath)
384+
sylog.Fatalf("Specified PEM file %s: does not exist.", pemPathEnv)
385385
}
386386

387387
sylog.Verbosef("Using pem path environment variable for encrypted container")

0 commit comments

Comments
 (0)