provisioner/salt-masterless: replace windows slash with linux [GH-276]
This commit is contained in:
parent
1b2d9c4044
commit
d60b769217
|
@ -9,6 +9,7 @@ IMPROVEMENTS:
|
|||
BUG FIXES:
|
||||
|
||||
* builder/vmware: Fix issue with finding driver files. [GH-279]
|
||||
* provisioner/salt-masterless: Uploads work properly from Windows. [GH-276]
|
||||
|
||||
## 0.3.0 (August 12, 2013)
|
||||
|
||||
|
|
|
@ -136,6 +136,7 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error {
|
|||
|
||||
func UploadLocalDirectory(localDir string, remoteDir string, comm packer.Communicator, ui packer.Ui) (err error) {
|
||||
visitPath := func(localPath string, f os.FileInfo, err error) (err2 error) {
|
||||
localPath = strings.Replace(localPath, "\\", "/", -1)
|
||||
localRelPath := strings.Replace(localPath, localDir, "", 1)
|
||||
remotePath := fmt.Sprintf("%s%s", remoteDir, localRelPath)
|
||||
if f.IsDir() && f.Name() == ".git" {
|
||||
|
|
Loading…
Reference in New Issue