Handle error when initializing the auth object in Azure Monitor output plugin. (#9048)

This commit is contained in:
David Bennett 2021-03-25 09:20:41 -04:00 committed by GitHub
parent d8b28bc609
commit e4bbcc447d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ func (a *AzureMonitor) Connect() error {
a.auth, err = auth.NewAuthorizerFromEnvironmentWithResource(defaultAuthResource)
if err != nil {
return nil
return err
}
a.Reset()