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
fd6dbc42
Commit
fd6dbc42
authored
Aug 08, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/amazon/common: rename StepModifyAttributes to
StepModifyAMIAttributes
parent
bfc2ac1e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
builder/amazon/common/step_modify_ami_attributes.go
builder/amazon/common/step_modify_ami_attributes.go
+3
-3
builder/amazon/ebs/builder.go
builder/amazon/ebs/builder.go
+1
-1
builder/amazon/instance/builder.go
builder/amazon/instance/builder.go
+1
-1
No files found.
builder/amazon/common/step_modify_attributes.go
→
builder/amazon/common/step_modify_a
mi_a
ttributes.go
View file @
fd6dbc42
...
@@ -7,14 +7,14 @@ import (
...
@@ -7,14 +7,14 @@ import (
"github.com/mitchellh/packer/packer"
"github.com/mitchellh/packer/packer"
)
)
type
StepModifyAttributes
struct
{
type
StepModifyA
MIA
ttributes
struct
{
Users
[]
string
Users
[]
string
Groups
[]
string
Groups
[]
string
ProductCodes
[]
string
ProductCodes
[]
string
Description
string
Description
string
}
}
func
(
s
*
StepModifyAttributes
)
Run
(
state
map
[
string
]
interface
{})
multistep
.
StepAction
{
func
(
s
*
StepModifyA
MIA
ttributes
)
Run
(
state
map
[
string
]
interface
{})
multistep
.
StepAction
{
ec2conn
:=
state
[
"ec2"
]
.
(
*
ec2
.
EC2
)
ec2conn
:=
state
[
"ec2"
]
.
(
*
ec2
.
EC2
)
ui
:=
state
[
"ui"
]
.
(
packer
.
Ui
)
ui
:=
state
[
"ui"
]
.
(
packer
.
Ui
)
amis
:=
state
[
"amis"
]
.
(
map
[
string
]
string
)
amis
:=
state
[
"amis"
]
.
(
map
[
string
]
string
)
...
@@ -50,6 +50,6 @@ func (s *StepModifyAttributes) Run(state map[string]interface{}) multistep.StepA
...
@@ -50,6 +50,6 @@ func (s *StepModifyAttributes) Run(state map[string]interface{}) multistep.StepA
return
multistep
.
ActionContinue
return
multistep
.
ActionContinue
}
}
func
(
s
*
StepModifyAttributes
)
Cleanup
(
state
map
[
string
]
interface
{})
{
func
(
s
*
StepModifyA
MIA
ttributes
)
Cleanup
(
state
map
[
string
]
interface
{})
{
// No cleanup...
// No cleanup...
}
}
builder/amazon/ebs/builder.go
View file @
fd6dbc42
...
@@ -126,7 +126,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
...
@@ -126,7 +126,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
&
stepStopInstance
{},
&
stepStopInstance
{},
&
stepCreateAMI
{},
&
stepCreateAMI
{},
&
awscommon
.
StepCreateTags
{
Tags
:
b
.
config
.
Tags
},
&
awscommon
.
StepCreateTags
{
Tags
:
b
.
config
.
Tags
},
&
awscommon
.
StepModifyAttributes
{
&
awscommon
.
StepModifyA
MIA
ttributes
{
Description
:
b
.
config
.
AMIDescription
,
Description
:
b
.
config
.
AMIDescription
,
Users
:
b
.
config
.
AMIUsers
,
Users
:
b
.
config
.
AMIUsers
,
Groups
:
b
.
config
.
AMIGroups
,
Groups
:
b
.
config
.
AMIGroups
,
...
...
builder/amazon/instance/builder.go
View file @
fd6dbc42
...
@@ -206,7 +206,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
...
@@ -206,7 +206,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
&
StepUploadBundle
{},
&
StepUploadBundle
{},
&
StepRegisterAMI
{},
&
StepRegisterAMI
{},
&
awscommon
.
StepCreateTags
{
Tags
:
b
.
config
.
Tags
},
&
awscommon
.
StepCreateTags
{
Tags
:
b
.
config
.
Tags
},
&
awscommon
.
StepModifyAttributes
{
&
awscommon
.
StepModifyA
MIA
ttributes
{
Description
:
b
.
config
.
AMIDescription
,
Description
:
b
.
config
.
AMIDescription
,
Users
:
b
.
config
.
AMIUsers
,
Users
:
b
.
config
.
AMIUsers
,
Groups
:
b
.
config
.
AMIGroups
,
Groups
:
b
.
config
.
AMIGroups
,
...
...
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