Skip to content

Commit

Permalink
Use new client method for creating aws account (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
zentron authored Apr 23, 2024
1 parent b1ec41d commit 2edfb49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion octopusdeploy/resource_aws_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ func resourceAmazonWebServicesAccountCreate(ctx context.Context, d *schema.Resou
log.Printf("[INFO] creating AWS account")

client := m.(*client.Client)
createdAccount, err := client.Accounts.Add(account)
createdAccount, err := accounts.Add(client, account)

if err != nil {
return diag.FromErr(err)
}
Expand Down

0 comments on commit 2edfb49

Please sign in to comment.