Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
Remove unnecessary debug
Browse files Browse the repository at this point in the history
  • Loading branch information
matejb-form3 committed May 7, 2020
1 parent 5db9cff commit 6eb1701
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions alienvault/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,8 @@ func providerConfigure(d *schema.ResourceData) (interface{}, error) {
)

if err := client.Authenticate(); err != nil {
return nil, fmt.Errorf("failed in authenticate (u: %s, p: %s): %w", d.Get("username").(hiddenString), d.Get("password").(hiddenString), err)
return nil, fmt.Errorf("failed in authenticate: %w", err)
}

return client, nil
}

type hiddenString string

func (v hiddenString) String() string {
sv := string(v)
if len(sv) < 3 {
return "****"
}
return "****" + sv[len(sv)-3:]
}

0 comments on commit 6eb1701

Please sign in to comment.