Skip to content
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

fixes #3133 - fix security group filtering when no groups need filtering #921

Closed
wants to merge 1 commit into from

Conversation

domcleal
Copy link
Contributor

@domcleal domcleal commented Oct 1, 2013

"[compact!] returns nil if no changes were made, otherwise returns the array"
http://www.ruby-doc.org/core-2.0.0/Array.html#method-i-compact-21

Hence if there are no VPC groups (vpc_id are all nil), the security_groups array is unfiltered, and the method returned nil rather than all the non-VPC security groups.

@ohadlevy
Copy link
Member

ohadlevy commented Oct 3, 2013

merged as 68522ec, thanks @domcleal

@ohadlevy ohadlevy closed this Oct 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants