@@ -193,13 +193,13 @@ func configureAuth(p *BuildrootProvisioner) error {
193
193
194
194
execRunner := & bootstrapper.ExecRunner {}
195
195
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" ),
199
199
}
200
200
201
201
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" )
203
203
if err != nil {
204
204
return errors .Wrapf (err , "open cert file: %s" , src )
205
205
}
@@ -244,7 +244,7 @@ func configureAuth(p *BuildrootProvisioner) error {
244
244
}
245
245
sshRunner := bootstrapper .NewSSHRunner (sshClient )
246
246
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" )
248
248
if err != nil {
249
249
return errors .Wrapf (err , "error copying %s to %s" , src , dst )
250
250
}
0 commit comments