Skip to content

Commit

Permalink
refactor: switch over to use APIv2 by default (#173)
Browse files Browse the repository at this point in the history
Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
  • Loading branch information
afiune authored Sep 27, 2021
1 parent 8425534 commit 6ebd5fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lacework/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ func providerConfigure(_ context.Context, d *schema.ResourceData) (interface{},

if account != "" && key != "" && secret != "" {
apiOpts = append(apiOpts, api.WithApiKeys(key, secret))
apiOpts = append(apiOpts, api.WithApiV2()) // default to APIv2

if subaccount != "" {
apiOpts = append(apiOpts, api.WithSubaccount(subaccount))
apiOpts = append(apiOpts, api.WithApiV2()) // only APIv2 understands sub-accounts
}

if organization {
Expand Down

0 comments on commit 6ebd5fc

Please sign in to comment.