-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ec2): functions addIngressRule and addEgressRule detect unresolved tokens as duplicates #17221
Conversation
Title does not follow the guidelines of Conventional Commits. Please adjust title before merge. |
} else { | ||
return peer.uniqueId; | ||
} | ||
} | ||
} | ||
|
||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This giant comment block here is really useful. Would be a shame to lose it and/or its context. Can you reunite it back with its friend, the determineRuleScope
method? 🥺
} | ||
|
||
private renderPeer(peer: IPeer) { | ||
if (Token.isUnresolved(peer.uniqueId)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A quick comment here explaining the why of this would be useful for future maintainers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added right below line 193
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
…d tokens as duplicates (aws#17221) fixes aws#17201 The issue is when the same security group uses these functions, so I added a private counter to `SecurityGroupBase`. However, to modify this private counter, `determineRuleScope` and `renderPeer` need to be member functions. These originally weren't member functions for a reason, and that's because `SecurityGroup` also uses these functions. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
fixes #17201
The issue is when the same security group uses these functions, so I added a private counter to
SecurityGroupBase
. However, to modify this private counter,determineRuleScope
andrenderPeer
need to be member functions. These originally weren't member functions for a reason, and that's becauseSecurityGroup
also uses these functions.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license