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
7b64723a
Commit
7b64723a
authored
Jun 29, 2015
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2327 from emate/fix-for-spot-requests-cleanup
Fixes spot instance cleanup.
parents
21d50916
586cab11
Changes
1
Hide 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 @
7b64723a
...
...
@@ -296,7 +296,7 @@ func (s *StepRunSourceInstance) Cleanup(state multistep.StateBag) {
if
s
.
spotRequest
!=
nil
{
ui
.
Say
(
"Cancelling the spot request..."
)
input
:=
&
ec2
.
CancelSpotInstanceRequestsInput
{
SpotInstanceRequestIDs
:
[]
*
string
{
s
.
spotRequest
.
Instance
ID
},
SpotInstanceRequestIDs
:
[]
*
string
{
s
.
spotRequest
.
SpotInstanceRequest
ID
},
}
if
_
,
err
:=
ec2conn
.
CancelSpotInstanceRequests
(
input
);
err
!=
nil
{
ui
.
Error
(
fmt
.
Sprintf
(
"Error cancelling the spot request, may still be around: %s"
,
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