Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
d60b7692
Commit
d60b7692
authored
Aug 12, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
provisioner/salt-masterless: replace windows slash with linux [GH-276]
parent
1b2d9c40
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
CHANGELOG.md
CHANGELOG.md
+1
-0
provisioner/salt-masterless/provisioner.go
provisioner/salt-masterless/provisioner.go
+1
-0
No files found.
CHANGELOG.md
View file @
d60b7692
...
...
@@ -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)
...
...
provisioner/salt-masterless/provisioner.go
View file @
d60b7692
...
...
@@ -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"
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment