Skip to content

Commit

Permalink
Changed constant and pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
AdminTurnedDevOps committed Sep 17, 2020
1 parent 3594353 commit 3a474df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion octopusdeploy/accounts.go
Expand Up @@ -110,7 +110,7 @@ func resourceAccountUpdateCommon(d *schema.ResourceData, m interface{}, account

octopusClient := m.(*client.Client)

updatedAccount, err := octopusClient.Accounts.Update(account)
updatedAccount, err := octopusClient.Accounts.Update(*account)

if err != nil {
return fmt.Errorf("error updating username password account id %s: %s", d.Id(), err.Error())
Expand Down
2 changes: 1 addition & 1 deletion octopusdeploy/resource_aws_account.go
Expand Up @@ -28,7 +28,7 @@ func resourceAmazonWebServicesAccount() *schema.Resource {
"account_type": {
Type: schema.TypeString,
Optional: true,
Default: "AWS",
Default: AccountTypeAWS,
},
"environments": {
Type: schema.TypeList,
Expand Down

0 comments on commit 3a474df

Please sign in to comment.