Skip to content

Commit

Permalink
fix issue where ${PhysicalResourceId} was not properly replaced in an…
Browse files Browse the repository at this point in the history
… update
  • Loading branch information
monken committed Jul 3, 2018
1 parent 7af5fd4 commit 0975628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambda.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exports.handler = (ev, ctx, cb) => {
OldResourceProperties: null,
})));
let rand = random();
ev[rp] = fixBooleans(ev[rp], ev.RequestType === 'Delete' ? ev[pid] : fixBooleans(ev[rp][pid], null, rand), rand);
ev[rp] = fixBooleans(ev[rp], ev.RequestType !== 'Create' ? ev[pid] : fixBooleans(ev[rp][pid], null, rand), rand);
let args = ev[rp][ev.RequestType];
if (!args) args = ev.RequestType === 'Delete' ? {} : ev[rp]['Create'];
['Attributes', pid, 'PhysicalResourceIdQuery', 'Parameters'].forEach(attr =>
Expand Down

0 comments on commit 0975628

Please sign in to comment.