Skip to content

Commit a7f5219

Browse files
wip fix default key provider (for delete for example)
1 parent 7596ffa commit a7f5219

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/kms/wrapper.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ const mapKmsProtocolToClient = {
8282
function getClientForKey(key) {
8383
// returns extracted KeyId so client doesn't need to substring the arnPrefix again
8484
const detail = fromArn(key);
85-
const clientIdentifier = `${detail.type}:${detail.protocol}:${detail.provider}`;
85+
const clientIdentifier = detail.type
86+
? `${detail.type}:${detail.protocol}:${detail.provider}`
87+
: `${config.sseMigration.previousType}:${config.sseMigration.previousProtocol
88+
}:${config.sseMigration.previousProvider}`;
8689

8790
if (detail.protocol === protocol) {
8891
// current client

0 commit comments

Comments
 (0)