Skip to content

Commit

Permalink
Fix provider_test init for TF_ACC=0
Browse files Browse the repository at this point in the history
  • Loading branch information
outcatcher committed Nov 9, 2020
1 parent ac1786e commit ef2e723
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions opentelekomcloud/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ func init() {
"opentelekomcloud": testAccProvider,
}

testAccProvider.Configure(terraform.NewResourceConfigRaw(nil))
OS_REGION_NAME = GetRegion(nil, testAccProvider.Meta().(*Config))
err := testAccProvider.Configure(terraform.NewResourceConfigRaw(nil))
if err == nil {
OS_REGION_NAME = GetRegion(nil, testAccProvider.Meta().(*Config))
}
}

func getTenantName() ProjectName {
Expand Down

0 comments on commit ef2e723

Please sign in to comment.