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:
Radek Simko 2015-10-03 09:47:07 -07:00
commit c4a6a8f09a
1 changed files with 1 additions and 1 deletions

View File

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