Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove an unreachable code fragment in ec2_security_group (#1348)
Remove an unreachable code fragment in ec2_security_group In file: ec2_security_group.py, method: ensure_present, a logical expression uses the identity operator. A new object is created inside the identity check operation and then used for matching identity. Since this is a distinct, new object, it will not have identity and match with anything else. As a result, the identity check will have a logical short circuit and the program may have unintended behavior. I suggested that the logical operation should be done properly. Reviewed-by: Mark Chappell
- Loading branch information