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
010cdb20
Commit
010cdb20
authored
Oct 14, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amazon/common: style
parent
add02d18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
builder/amazon/common/state.go
builder/amazon/common/state.go
+8
-8
No files found.
builder/amazon/common/state.go
View file @
010cdb20
...
...
@@ -30,14 +30,6 @@ type StateChangeConf struct {
Target
string
}
func
isTransientNetworkError
(
err
error
)
bool
{
ret
:=
false
if
nerr
,
ok
:=
err
.
(
net
.
Error
);
ok
&&
nerr
.
Temporary
()
{
ret
=
true
}
return
ret
}
// AMIStateRefreshFunc returns a StateRefreshFunc that is used to watch
// an AMI for state changes.
func
AMIStateRefreshFunc
(
conn
*
ec2
.
EC2
,
imageId
string
)
StateRefreshFunc
{
...
...
@@ -179,3 +171,11 @@ func WaitForState(conf *StateChangeConf) (i interface{}, err error) {
return
}
func
isTransientNetworkError
(
err
error
)
bool
{
if
nerr
,
ok
:=
err
.
(
net
.
Error
);
ok
&&
nerr
.
Temporary
()
{
return
true
}
return
false
}
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