Skip to content

Commit

Permalink
Handle error when initializing the auth object in Azure Monitor outpu…
Browse files Browse the repository at this point in the history
…t plugin. (influxdata#9048)
  • Loading branch information
ivorybilled authored Mar 25, 2021
1 parent d8b28bc commit e4bbcc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/outputs/azure_monitor/azure_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (a *AzureMonitor) Connect() error {

a.auth, err = auth.NewAuthorizerFromEnvironmentWithResource(defaultAuthResource)
if err != nil {
return nil
return err
}

a.Reset()
Expand Down

0 comments on commit e4bbcc4

Please sign in to comment.