amazon/common: style

This commit is contained in:
Mitchell Hashimoto 2014-10-14 15:39:13 -07:00
parent add02d18f7
commit 010cdb2057
1 changed files with 8 additions and 8 deletions

View File

@ -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
}