Skip to content

Commit cc76450

Browse files
committed
Handle BadParameter error code from KeyVault
#22
1 parent 956645f commit cc76450

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Azure/AzureKeyVaultConfigBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ private async Task<string> GetValueAsync(string key)
130130
return secret?.Value;
131131
} catch (KeyVaultErrorException kve) {
132132
// Simply return null if the secret wasn't found
133-
if (kve.Body.Error.Code == "SecretNotFound")
133+
if (kve.Body.Error.Code == "SecretNotFound" || kve.Body.Error.Code == "BadParameter")
134134
return null;
135135

136136
// If there was a permission issue or some other error, let the exception bubble

0 commit comments

Comments
 (0)