Skip to content

Commit 4dd8a5e

Browse files
committed
fixed path errors on windows, replaced filepath w/ path
1 parent e6da47f commit 4dd8a5e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/provision/buildroot.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,13 @@ func configureAuth(p *BuildrootProvisioner) error {
193193

194194
execRunner := &bootstrapper.ExecRunner{}
195195
hostCerts := map[string]string{
196-
authOptions.CaCertPath: filepath.Join(authOptions.StorePath, "ca.pem"),
197-
authOptions.ClientCertPath: filepath.Join(authOptions.StorePath, "cert.pem"),
198-
authOptions.ClientKeyPath: filepath.Join(authOptions.StorePath, "key.pem"),
196+
authOptions.CaCertPath: path.Join(authOptions.StorePath, "ca.pem"),
197+
authOptions.ClientCertPath: path.Join(authOptions.StorePath, "cert.pem"),
198+
authOptions.ClientKeyPath: path.Join(authOptions.StorePath, "key.pem"),
199199
}
200200

201201
for src, dst := range hostCerts {
202-
f, err := assets.NewFileAsset(src, filepath.Dir(dst), filepath.Base(dst), "0777")
202+
f, err := assets.NewFileAsset(src, path.Dir(dst), filepath.Base(dst), "0777")
203203
if err != nil {
204204
return errors.Wrapf(err, "open cert file: %s", src)
205205
}
@@ -244,7 +244,7 @@ func configureAuth(p *BuildrootProvisioner) error {
244244
}
245245
sshRunner := bootstrapper.NewSSHRunner(sshClient)
246246
for src, dst := range remoteCerts {
247-
f, err := assets.NewFileAsset(src, filepath.Dir(dst), filepath.Base(dst), "0640")
247+
f, err := assets.NewFileAsset(src, path.Dir(dst), filepath.Base(dst), "0640")
248248
if err != nil {
249249
return errors.Wrapf(err, "error copying %s to %s", src, dst)
250250
}

0 commit comments

Comments
 (0)