Skip to content

Commit

Permalink
fix some more code
Browse files Browse the repository at this point in the history
  • Loading branch information
hmodi-ns1 committed Jul 24, 2024
1 parent 4857b32 commit 4b01981
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions ns1/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ type Config struct {
Key string
Endpoint string
IgnoreSSL bool
EnableDDI bool
RateLimitParallelism int
RetryMax int
UserAgent string
Expand Down Expand Up @@ -69,10 +68,6 @@ func (c *Config) Client() (*ns1.Client, error) {
httpClient.Transport = tr
}

if c.EnableDDI {
decos = append(decos, ns1.SetDDIAPI())
}

// If NS1_DEBUG is set, define custom Doer to log HTTP requests made by SDK
if os.Getenv("NS1_DEBUG") != "" {
doer := ns1.Decorate(httpClient, Logging())
Expand Down
10 changes: 0 additions & 10 deletions ns1/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ func Provider() *schema.Provider {
DefaultFunc: schema.EnvDefaultFunc("NS1_IGNORE_SSL", nil),
Description: descriptions["ignore_ssl"],
},
"enable_ddi": {
Type: schema.TypeBool,
Optional: true,
DefaultFunc: schema.EnvDefaultFunc("NS1_ENABLE_DDI", nil),
Description: descriptions["enable_ddi"],
},
"rate_limit_parallelism": {
Type: schema.TypeInt,
Optional: true,
Expand Down Expand Up @@ -108,9 +102,6 @@ func ns1Configure(d *schema.ResourceData) (interface{}, error) {
if v, ok := d.GetOk("ignore_ssl"); ok {
config.IgnoreSSL = v.(bool)
}
if v, ok := d.GetOk("enable_ddi"); ok {
config.EnableDDI = v.(bool)
}
if v, ok := d.GetOk("rate_limit_parallelism"); ok {
config.RateLimitParallelism = v.(int)
}
Expand All @@ -134,7 +125,6 @@ func init() {
"rate_limit_parallelism": "Tune response to rate limits, see docs",
"retry_max": "Maximum retries for 50x errors (-1 to disable)",
"user_agent": "User-Agent string to use in NS1 API requests",
"enable_ddi": "Deprecated, no longer in use",
}

structs.DefaultTagName = "json"
Expand Down

0 comments on commit 4b01981

Please sign in to comment.