Merge pull request #3400 from TimeIncOSS/b-aws-fix-tests
aws: Only fail on missing TF_ACC_ID if we're actually running acc. tests
This commit is contained in:
commit
c4a6a8f09a
|
@ -219,7 +219,7 @@ func TestAccAWSRouteTable_vpcPeering(t *testing.T) {
|
|||
var v ec2.RouteTable
|
||||
|
||||
acctId := os.Getenv("TF_ACC_ID")
|
||||
if acctId == "" {
|
||||
if acctId == "" && os.Getenv(resource.TestEnvVar) != "" {
|
||||
t.Fatal("Error: Test TestAccAWSRouteTable_vpcPeering requires an Account ID in TF_ACC_ID ")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue