The addToResourcePolicy method of the Repository construct is returning a AddToResourcePolicyResult with statementAdded to false (see code). It looks like it should be setting statementAdded to true instead.
Reproduction Steps
- Call
addToResourcePolicy on an instance of the Repository class with a valid PolicyStatement argument
What did you expect to happen?
The return value of the method should have statementAdded as true.
What actually happened?
The return value of the method had statementAdded as false.
Environment
- CDK CLI Version : 1.73.0
- Framework Version: 1.73.0
- Node.js Version: v12.20.0
- OS : Linux
- Language (Version): Typescript (4.0.5)
Other
This is 🐛 Bug Report
The
addToResourcePolicymethod of theRepositoryconstruct is returning aAddToResourcePolicyResultwithstatementAddedtofalse(see code). It looks like it should be settingstatementAddedtotrueinstead.Reproduction Steps
addToResourcePolicyon an instance of theRepositoryclass with a validPolicyStatementargumentWhat did you expect to happen?
The return value of the method should have
statementAddedastrue.What actually happened?
The return value of the method had
statementAddedasfalse.Environment
Other
This is 🐛 Bug Report