don't shadow package name
This commit is contained in:
parent
f681faa296
commit
0a24f4eb2e
|
@ -75,13 +75,13 @@ func (c *AccessConfig) Session() (*session.Session, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if session, err := session.NewSessionWithOptions(opts); err != nil {
|
if sess, err := session.NewSessionWithOptions(opts); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else if *session.Config.Region == "" {
|
} else if *sess.Config.Region == "" {
|
||||||
return nil, fmt.Errorf("Could not find AWS region, make sure it's set.")
|
return nil, fmt.Errorf("Could not find AWS region, make sure it's set.")
|
||||||
} else {
|
} else {
|
||||||
log.Printf("Found region %s", *session.Config.Region)
|
log.Printf("Found region %s", *sess.Config.Region)
|
||||||
c.session = session
|
c.session = sess
|
||||||
}
|
}
|
||||||
|
|
||||||
return c.session, nil
|
return c.session, nil
|
||||||
|
|
Loading…
Reference in New Issue