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
dd97a60c
Commit
dd97a60c
authored
Jun 25, 2015
by
Marcin Matlaszek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for tag creation when creating new ec2 instance.
parent
6bb480e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
builder/amazon/common/step_run_source_instance.go
builder/amazon/common/step_run_source_instance.go
+1
-1
No files found.
builder/amazon/common/step_run_source_instance.go
View file @
dd97a60c
...
@@ -256,7 +256,7 @@ func (s *StepRunSourceInstance) Run(state multistep.StateBag) multistep.StepActi
...
@@ -256,7 +256,7 @@ func (s *StepRunSourceInstance) Run(state multistep.StateBag) multistep.StepActi
ec2Tags
:=
make
([]
*
ec2
.
Tag
,
1
,
len
(
s
.
Tags
)
+
1
)
ec2Tags
:=
make
([]
*
ec2
.
Tag
,
1
,
len
(
s
.
Tags
)
+
1
)
ec2Tags
[
0
]
=
&
ec2
.
Tag
{
Key
:
aws
.
String
(
"Name"
),
Value
:
aws
.
String
(
"Packer Builder"
)}
ec2Tags
[
0
]
=
&
ec2
.
Tag
{
Key
:
aws
.
String
(
"Name"
),
Value
:
aws
.
String
(
"Packer Builder"
)}
for
k
,
v
:=
range
s
.
Tags
{
for
k
,
v
:=
range
s
.
Tags
{
ec2Tags
=
append
(
ec2Tags
,
&
ec2
.
Tag
{
Key
:
&
k
,
Value
:
&
v
})
ec2Tags
=
append
(
ec2Tags
,
&
ec2
.
Tag
{
Key
:
aws
.
String
(
k
),
Value
:
aws
.
String
(
v
)
})
}
}
_
,
err
=
ec2conn
.
CreateTags
(
&
ec2
.
CreateTagsInput
{
_
,
err
=
ec2conn
.
CreateTags
(
&
ec2
.
CreateTagsInput
{
...
...
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