remove duplicate region check error
This commit is contained in:
parent
16aa21dffe
commit
f4fbf45349
|
@ -78,8 +78,6 @@ func (c *AccessConfig) Session() (*session.Session, error) {
|
|||
|
||||
if sess, err := session.NewSessionWithOptions(opts); err != nil {
|
||||
return nil, err
|
||||
} else if *sess.Config.Region == "" {
|
||||
return nil, fmt.Errorf("Could not find AWS region, make sure it's set.")
|
||||
} else {
|
||||
log.Printf("Found region %s", *sess.Config.Region)
|
||||
c.session = sess
|
||||
|
|
Loading…
Reference in New Issue