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
1234e61c
Commit
1234e61c
authored
Dec 12, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/amazon/all: get rid of unnecessary field
parent
f5401110
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
0 additions
and
12 deletions
+0
-12
builder/amazon/chroot/step_attach_volume.go
builder/amazon/chroot/step_attach_volume.go
+0
-2
builder/amazon/chroot/step_create_volume.go
builder/amazon/chroot/step_create_volume.go
+0
-1
builder/amazon/chroot/step_register_ami.go
builder/amazon/chroot/step_register_ami.go
+0
-1
builder/amazon/chroot/step_snapshot.go
builder/amazon/chroot/step_snapshot.go
+0
-1
builder/amazon/common/state.go
builder/amazon/common/state.go
+0
-1
builder/amazon/common/step_ami_region_copy.go
builder/amazon/common/step_ami_region_copy.go
+0
-1
builder/amazon/common/step_run_source_instance.go
builder/amazon/common/step_run_source_instance.go
+0
-2
builder/amazon/ebs/step_create_ami.go
builder/amazon/ebs/step_create_ami.go
+0
-1
builder/amazon/ebs/step_stop_instance.go
builder/amazon/ebs/step_stop_instance.go
+0
-1
builder/amazon/instance/step_register_ami.go
builder/amazon/instance/step_register_ami.go
+0
-1
No files found.
builder/amazon/chroot/step_attach_volume.go
View file @
1234e61c
...
...
@@ -46,7 +46,6 @@ func (s *StepAttachVolume) Run(state multistep.StateBag) multistep.StepAction {
// Wait for the volume to become attached
stateChange
:=
awscommon
.
StateChangeConf
{
Conn
:
ec2conn
,
Pending
:
[]
string
{
"attaching"
},
StepState
:
state
,
Target
:
"attached"
,
...
...
@@ -102,7 +101,6 @@ func (s *StepAttachVolume) CleanupFunc(state multistep.StateBag) error {
// Wait for the volume to detach
stateChange
:=
awscommon
.
StateChangeConf
{
Conn
:
ec2conn
,
Pending
:
[]
string
{
"attaching"
,
"attached"
,
"detaching"
},
StepState
:
state
,
Target
:
"detached"
,
...
...
builder/amazon/chroot/step_create_volume.go
View file @
1234e61c
...
...
@@ -65,7 +65,6 @@ func (s *StepCreateVolume) Run(state multistep.StateBag) multistep.StepAction {
// Wait for the volume to become ready
stateChange
:=
awscommon
.
StateChangeConf
{
Conn
:
ec2conn
,
Pending
:
[]
string
{
"creating"
},
StepState
:
state
,
Target
:
"available"
,
...
...
builder/amazon/chroot/step_register_ami.go
View file @
1234e61c
...
...
@@ -53,7 +53,6 @@ func (s *StepRegisterAMI) Run(state multistep.StateBag) multistep.StepAction {
// Wait for the image to become ready
stateChange
:=
awscommon
.
StateChangeConf
{
Conn
:
ec2conn
,
Pending
:
[]
string
{
"pending"
},
Target
:
"available"
,
Refresh
:
awscommon
.
AMIStateRefreshFunc
(
ec2conn
,
registerResp
.
ImageId
),
...
...
builder/amazon/chroot/step_snapshot.go
View file @
1234e61c
...
...
@@ -37,7 +37,6 @@ func (s *StepSnapshot) Run(state multistep.StateBag) multistep.StepAction {
// Wait for the snapshot to be ready
stateChange
:=
awscommon
.
StateChangeConf
{
Conn
:
ec2conn
,
Pending
:
[]
string
{
"pending"
},
StepState
:
state
,
Target
:
"completed"
,
...
...
builder/amazon/common/state.go
View file @
1234e61c
...
...
@@ -23,7 +23,6 @@ type StateRefreshFunc func() (result interface{}, state string, err error)
// StateChangeConf is the configuration struct used for `WaitForState`.
type
StateChangeConf
struct
{
Conn
*
ec2
.
EC2
Pending
[]
string
Refresh
StateRefreshFunc
StepState
multistep
.
StateBag
...
...
builder/amazon/common/step_ami_region_copy.go
View file @
1234e61c
...
...
@@ -83,7 +83,6 @@ func amiRegionCopy(state multistep.StateBag, auth aws.Auth, imageId string,
}
stateChange
:=
StateChangeConf
{
Conn
:
regionconn
,
Pending
:
[]
string
{
"pending"
},
Target
:
"available"
,
Refresh
:
AMIStateRefreshFunc
(
regionconn
,
resp
.
ImageId
),
...
...
builder/amazon/common/step_run_source_instance.go
View file @
1234e61c
...
...
@@ -95,7 +95,6 @@ func (s *StepRunSourceInstance) Run(state multistep.StateBag) multistep.StepActi
ui
.
Say
(
fmt
.
Sprintf
(
"Waiting for instance (%s) to become ready..."
,
s
.
instance
.
InstanceId
))
stateChange
:=
StateChangeConf
{
Conn
:
ec2conn
,
Pending
:
[]
string
{
"pending"
},
Target
:
"running"
,
Refresh
:
InstanceStateRefreshFunc
(
ec2conn
,
s
.
instance
),
...
...
@@ -145,7 +144,6 @@ func (s *StepRunSourceInstance) Cleanup(state multistep.StateBag) {
}
stateChange
:=
StateChangeConf
{
Conn
:
ec2conn
,
Pending
:
[]
string
{
"pending"
,
"running"
,
"shutting-down"
,
"stopped"
,
"stopping"
},
Refresh
:
InstanceStateRefreshFunc
(
ec2conn
,
s
.
instance
),
Target
:
"terminated"
,
...
...
builder/amazon/ebs/step_create_ami.go
View file @
1234e61c
...
...
@@ -40,7 +40,6 @@ func (s *stepCreateAMI) Run(state multistep.StateBag) multistep.StepAction {
// Wait for the image to become ready
stateChange
:=
awscommon
.
StateChangeConf
{
Conn
:
ec2conn
,
Pending
:
[]
string
{
"pending"
},
Target
:
"available"
,
Refresh
:
awscommon
.
AMIStateRefreshFunc
(
ec2conn
,
createResp
.
ImageId
),
...
...
builder/amazon/ebs/step_stop_instance.go
View file @
1234e61c
...
...
@@ -28,7 +28,6 @@ func (s *stepStopInstance) Run(state multistep.StateBag) multistep.StepAction {
// Wait for the instance to actual stop
ui
.
Say
(
"Waiting for the instance to stop..."
)
stateChange
:=
awscommon
.
StateChangeConf
{
Conn
:
ec2conn
,
Pending
:
[]
string
{
"running"
,
"stopping"
},
Target
:
"stopped"
,
Refresh
:
awscommon
.
InstanceStateRefreshFunc
(
ec2conn
,
instance
),
...
...
builder/amazon/instance/step_register_ami.go
View file @
1234e61c
...
...
@@ -38,7 +38,6 @@ func (s *StepRegisterAMI) Run(state multistep.StateBag) multistep.StepAction {
// Wait for the image to become ready
stateChange
:=
awscommon
.
StateChangeConf
{
Conn
:
ec2conn
,
Pending
:
[]
string
{
"pending"
},
Target
:
"available"
,
Refresh
:
awscommon
.
AMIStateRefreshFunc
(
ec2conn
,
registerResp
.
ImageId
),
...
...
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