Skip to content

Commit

Permalink
Merge pull request #4463 from terraform-providers/b/user-agent
Browse files Browse the repository at this point in the history
clients: ensuring the user agent is set even if there's no partner id
  • Loading branch information
tombuildsstuff authored Sep 30, 2019
2 parents 89b3dd8 + 2b75869 commit 00f7fc4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions azurerm/internal/common/client_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ type ClientOptions struct {
}

func (o ClientOptions) ConfigureClient(c *autorest.Client, authorizer autorest.Authorizer) {
if o.PartnerId != "" {
setUserAgent(c, o.PartnerId)
}
setUserAgent(c, o.PartnerId)

c.Authorizer = authorizer
c.Sender = sender.BuildSender("AzureRM")
Expand Down

0 comments on commit 00f7fc4

Please sign in to comment.