Skip to content

Commit

Permalink
Following up patch of e5d9a67 (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
niuzhenguo authored May 28, 2020
1 parent 81dcdbd commit bc43cf5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion huaweicloud/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ type Config struct {
CACertFile string
ClientCertFile string
ClientKeyFile string
Cloud string
DomainID string
DomainName string
IdentityEndpoint string
Expand Down
10 changes: 0 additions & 10 deletions huaweicloud/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,6 @@ func Provider() terraform.ResourceProvider {
Description: descriptions["key"],
},

"cloud": {
Type: schema.TypeString,
Optional: true,
DefaultFunc: schema.EnvDefaultFunc("OS_CLOUD", ""),
Description: descriptions["cloud"],
},

"agency_name": {
Type: schema.TypeString,
Optional: true,
Expand Down Expand Up @@ -378,8 +371,6 @@ func init() {

"key": "A client private key to authenticate with.",

"cloud": "An entry in a `clouds.yaml` file to use.",

"agency_name": "The name of agency",

"agency_domain_name": "The name of domain who created the agency (Identity v3).",
Expand All @@ -395,7 +386,6 @@ func configureProvider(d *schema.ResourceData, terraformVersion string) (interfa
CACertFile: d.Get("cacert_file").(string),
ClientCertFile: d.Get("cert").(string),
ClientKeyFile: d.Get("key").(string),
Cloud: d.Get("cloud").(string),
DomainID: d.Get("domain_id").(string),
DomainName: d.Get("domain_name").(string),
IdentityEndpoint: d.Get("auth_url").(string),
Expand Down
5 changes: 0 additions & 5 deletions huaweicloud/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ func init() {
}

func testAccPreCheckRequiredEnvVars(t *testing.T) {
v := os.Getenv("OS_AUTH_URL")
if v == "" {
t.Fatal("OS_AUTH_URL must be set for acceptance tests")
}

if OS_IMAGE_ID == "" && OS_IMAGE_NAME == "" {
t.Fatal("OS_IMAGE_ID or OS_IMAGE_NAME must be set for acceptance tests")
}
Expand Down

0 comments on commit bc43cf5

Please sign in to comment.