Skip to content

Commit 4b01981

Browse files
committed
fix some more code
1 parent 4857b32 commit 4b01981

2 files changed

Lines changed: 0 additions & 15 deletions

File tree

ns1/config.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ type Config struct {
2929
Key string
3030
Endpoint string
3131
IgnoreSSL bool
32-
EnableDDI bool
3332
RateLimitParallelism int
3433
RetryMax int
3534
UserAgent string
@@ -69,10 +68,6 @@ func (c *Config) Client() (*ns1.Client, error) {
6968
httpClient.Transport = tr
7069
}
7170

72-
if c.EnableDDI {
73-
decos = append(decos, ns1.SetDDIAPI())
74-
}
75-
7671
// If NS1_DEBUG is set, define custom Doer to log HTTP requests made by SDK
7772
if os.Getenv("NS1_DEBUG") != "" {
7873
doer := ns1.Decorate(httpClient, Logging())

ns1/provider.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ func Provider() *schema.Provider {
3030
DefaultFunc: schema.EnvDefaultFunc("NS1_IGNORE_SSL", nil),
3131
Description: descriptions["ignore_ssl"],
3232
},
33-
"enable_ddi": {
34-
Type: schema.TypeBool,
35-
Optional: true,
36-
DefaultFunc: schema.EnvDefaultFunc("NS1_ENABLE_DDI", nil),
37-
Description: descriptions["enable_ddi"],
38-
},
3933
"rate_limit_parallelism": {
4034
Type: schema.TypeInt,
4135
Optional: true,
@@ -108,9 +102,6 @@ func ns1Configure(d *schema.ResourceData) (interface{}, error) {
108102
if v, ok := d.GetOk("ignore_ssl"); ok {
109103
config.IgnoreSSL = v.(bool)
110104
}
111-
if v, ok := d.GetOk("enable_ddi"); ok {
112-
config.EnableDDI = v.(bool)
113-
}
114105
if v, ok := d.GetOk("rate_limit_parallelism"); ok {
115106
config.RateLimitParallelism = v.(int)
116107
}
@@ -134,7 +125,6 @@ func init() {
134125
"rate_limit_parallelism": "Tune response to rate limits, see docs",
135126
"retry_max": "Maximum retries for 50x errors (-1 to disable)",
136127
"user_agent": "User-Agent string to use in NS1 API requests",
137-
"enable_ddi": "Deprecated, no longer in use",
138128
}
139129

140130
structs.DefaultTagName = "json"

0 commit comments

Comments
 (0)