Skip to content

Commit 5d823d8

Browse files
fixed issue with error returning when inventory count == 0
1 parent ae79f32 commit 5d823d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AzureKeyVault/AzureClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public virtual async Task<IEnumerable<CurrentInventoryItem>> GetCertificatesAsyn
331331
}
332332
}
333333

334-
if (failedCount == fullInventoryList.Count())
334+
if (failedCount == fullInventoryList.Count() && failedCount > 0)
335335
{
336336
throw new Exception("Unable to retreive details for certificates.", innerException);
337337
}

0 commit comments

Comments
 (0)