Skip to content

Commit 236075b

Browse files
Merge pull request #23 from rahulpnath/22-handleBadParameter
Handle BadParameter error code from KeyVault
2 parents e578646 + cc76450 commit 236075b

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)