Commit 010cdb20 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

amazon/common: style

parent add02d18
...@@ -30,14 +30,6 @@ type StateChangeConf struct { ...@@ -30,14 +30,6 @@ type StateChangeConf struct {
Target string 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 // AMIStateRefreshFunc returns a StateRefreshFunc that is used to watch
// an AMI for state changes. // an AMI for state changes.
func AMIStateRefreshFunc(conn *ec2.EC2, imageId string) StateRefreshFunc { func AMIStateRefreshFunc(conn *ec2.EC2, imageId string) StateRefreshFunc {
...@@ -179,3 +171,11 @@ func WaitForState(conf *StateChangeConf) (i interface{}, err error) { ...@@ -179,3 +171,11 @@ func WaitForState(conf *StateChangeConf) (i interface{}, err error) {
return return
} }
func isTransientNetworkError(err error) bool {
if nerr, ok := err.(net.Error); ok && nerr.Temporary() {
return true
}
return false
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment