Skip to content

Commit

Permalink
Remove conflict from provider
Browse files Browse the repository at this point in the history
  • Loading branch information
hkantare committed Jun 12, 2019
1 parent ab719a8 commit c08e813
Showing 1 changed file with 18 additions and 22 deletions.
40 changes: 18 additions & 22 deletions ibm/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,30 @@ func Provider() terraform.ResourceProvider {
return &schema.Provider{
Schema: map[string]*schema.Schema{
"bluemix_api_key": {
Type: schema.TypeString,
Optional: true,
Description: "The Bluemix API Key",
DefaultFunc: schema.MultiEnvDefaultFunc([]string{"BM_API_KEY", "BLUEMIX_API_KEY"}, ""),
Deprecated: "This field is deprecated please use ibmcloud_api_key",
ConflictsWith: []string{"ibmcloud_api_key"},
Type: schema.TypeString,
Optional: true,
Description: "The Bluemix API Key",
DefaultFunc: schema.MultiEnvDefaultFunc([]string{"BM_API_KEY", "BLUEMIX_API_KEY"}, ""),
Deprecated: "This field is deprecated please use ibmcloud_api_key",
},
"bluemix_timeout": {
Type: schema.TypeInt,
Optional: true,
Description: "The timeout (in seconds) to set for any Bluemix API calls made.",
DefaultFunc: schema.MultiEnvDefaultFunc([]string{"BM_TIMEOUT", "BLUEMIX_TIMEOUT"}, 60),
Deprecated: "This field is deprecated please use ibmcloud_timeout",
ConflictsWith: []string{"ibmcloud_timeout"},
Type: schema.TypeInt,
Optional: true,
Description: "The timeout (in seconds) to set for any Bluemix API calls made.",
DefaultFunc: schema.MultiEnvDefaultFunc([]string{"BM_TIMEOUT", "BLUEMIX_TIMEOUT"}, 60),
Deprecated: "This field is deprecated please use ibmcloud_timeout",
},
"ibmcloud_api_key": {
Type: schema.TypeString,
Optional: true,
Description: "The IBM Cloud API Key",
DefaultFunc: schema.MultiEnvDefaultFunc([]string{"IC_API_KEY", "IBMCLOUD_API_KEY"}, ""),
ConflictsWith: []string{"bluemix_api_key"},
Type: schema.TypeString,
Optional: true,
Description: "The IBM Cloud API Key",
DefaultFunc: schema.MultiEnvDefaultFunc([]string{"IC_API_KEY", "IBMCLOUD_API_KEY"}, ""),
},
"ibmcloud_timeout": {
Type: schema.TypeInt,
Optional: true,
Description: "The timeout (in seconds) to set for any IBM Cloud API calls made.",
DefaultFunc: schema.MultiEnvDefaultFunc([]string{"IC_TIMEOUT", "IBMCLOUD_TIMEOUT"}, 60),
ConflictsWith: []string{"bluemix_timeout"},
Type: schema.TypeInt,
Optional: true,
Description: "The timeout (in seconds) to set for any IBM Cloud API calls made.",
DefaultFunc: schema.MultiEnvDefaultFunc([]string{"IC_TIMEOUT", "IBMCLOUD_TIMEOUT"}, 60),
},
"region": {
Type: schema.TypeString,
Expand Down

0 comments on commit c08e813

Please sign in to comment.