Merge pull request #78528 from bclau/credentialprovider/windows-homedir

credentialprovider: Sets homeDirPath to os.UserHomeDir()
This commit is contained in:
Kubernetes Prow Robot 2019-06-01 09:50:41 -07:00 committed by GitHub
commit d910055d35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ var (
preferredPathLock sync.Mutex
preferredPath = ""
workingDirPath = ""
homeDirPath = os.Getenv("HOME")
homeDirPath, _ = os.UserHomeDir()
rootDirPath = "/"
homeJsonDirPath = filepath.Join(homeDirPath, ".docker")
rootJsonDirPath = filepath.Join(rootDirPath, ".docker")