Skip to content

Commit

Permalink
introduce minimal changes to try to trigger the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsitnik committed Sep 14, 2023
1 parent 2094e46 commit 4c0f986
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context

try
{
await _secretClient.GetSecretAsync(name: secretName, cancellationToken: cancellationToken).ConfigureAwait(false);
_ = await _secretClient.GetSecretAsync(name: secretName, cancellationToken: cancellationToken).ConfigureAwait(false);

return new HealthCheckResult(HealthStatus.Healthy);
}
Expand Down
2 changes: 2 additions & 0 deletions src/HealthChecks.AzureKeyVault/AzureKeyVaultHealthCheck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context
{
// https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/issues/785
if (_options._keys.Count == 0 && _options.Certificates.Count == 0 && _options._secrets.Count == 0)
{
return HealthCheckResult.Unhealthy("No keys, certificates or secrets configured.");
}

foreach (string secret in _options.Secrets)
{
Expand Down

0 comments on commit 4c0f986

Please sign in to comment.