Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Support another case when adding AssignedTo to telemetry (#2829)
Browse files Browse the repository at this point in the history
* Add new command

* Catch another case
  • Loading branch information
tevoinea authored Feb 15, 2023
1 parent 32cdf8b commit 2d59a2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ApiService/ApiService/onefuzzlib/notifications/Ado.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ public async Async.Task NotifyAdo(AdoTemplate config, Container container, strin
var ado = await AdoConnector.AdoConnectorCreator(_context, container, filename, config, report, _logTracer);
await ado.Process(notificationInfo);
} catch (Exception e)
when (e is VssAuthenticationException || e is VssServiceException) {
when (e is VssUnauthorizedException || e is VssAuthenticationException || e is VssServiceException) {
var _ = config.AdoFields.TryGetValue("System.AssignedTo", out var assignedTo);
if (e is VssAuthenticationException && !string.IsNullOrEmpty(assignedTo)) {
if ((e is VssAuthenticationException || e is VssUnauthorizedException) && !string.IsNullOrEmpty(assignedTo)) {
notificationInfo = notificationInfo.AddRange(new (string, string)[] { ("assigned_to", assignedTo) });
}

Expand Down

0 comments on commit 2d59a2a

Please sign in to comment.