From f4fbf453491ba4412d28d22dd5d79514e626d578 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Fri, 26 Oct 2018 17:44:56 +0200 Subject: [PATCH] remove duplicate region check error --- builder/amazon/common/access_config.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/builder/amazon/common/access_config.go b/builder/amazon/common/access_config.go index 7eb027132..0a57e160f 100644 --- a/builder/amazon/common/access_config.go +++ b/builder/amazon/common/access_config.go @@ -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