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
d429b75f
Commit
d429b75f
authored
Jun 23, 2015
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post-processor/vagrant: fix interpolation
parent
ec9be092
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
post-processor/vagrant/post-processor.go
post-processor/vagrant/post-processor.go
+6
-7
No files found.
post-processor/vagrant/post-processor.go
View file @
d429b75f
...
@@ -76,13 +76,12 @@ func (p *PostProcessor) PostProcessProvider(name string, provider Provider, ui p
...
@@ -76,13 +76,12 @@ func (p *PostProcessor) PostProcessProvider(name string, provider Provider, ui p
ui
.
Say
(
fmt
.
Sprintf
(
"Creating Vagrant box for '%s' provider"
,
name
))
ui
.
Say
(
fmt
.
Sprintf
(
"Creating Vagrant box for '%s' provider"
,
name
))
outputPath
,
err
:=
interpolate
.
Render
(
config
.
OutputPath
,
&
interpolate
.
Context
{
config
.
ctx
.
Data
=
&
outputPathTemplate
{
Data
:
&
outputPathTemplate
{
ArtifactId
:
artifact
.
Id
(),
ArtifactId
:
artifact
.
Id
(),
BuildName
:
config
.
PackerBuildName
,
BuildName
:
config
.
PackerBuildName
,
Provider
:
name
,
Provider
:
name
,
},
}
}
)
outputPath
,
err
:=
interpolate
.
Render
(
config
.
OutputPath
,
&
config
.
ctx
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
false
,
err
return
nil
,
false
,
err
}
}
...
...
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