Skip to content

Commit 1a68719

Browse files
authored
Merge pull request #1607 from andyzhangx/inherit-os-environ
fix: inherit os environment when calling blobfuse2 in blobfuse-proxy
2 parents a1aa61a + 67d9dc1 commit 1a68719

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/blobfuse-proxy/server/server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020
"context"
2121
"fmt"
2222
"net"
23+
"os"
2324
"os/exec"
2425
"strings"
2526
"sync"
@@ -86,7 +87,7 @@ func (server *MountServer) MountAzureBlob(_ context.Context,
8687
cmd = exec.Command("blobfuse", strings.Split(args, " ")...)
8788
}
8889

89-
cmd.Env = append(cmd.Env, authEnv...)
90+
cmd.Env = append(os.Environ(), authEnv...)
9091
output, err := cmd.CombinedOutput()
9192
if err != nil {
9293
klog.Error("blobfuse mount failed: with error:", err.Error())

0 commit comments

Comments
 (0)