Skip to content

Issue: LIBCLOUD-466 Add ingress/egress VPC support to security group rul...#202

Closed
cderamus wants to merge 2 commits intoapache:trunkfrom
DivvyCloud:LIBCLOUD-466_Add_VPC_Ingress_Egress_Rules
Closed

Issue: LIBCLOUD-466 Add ingress/egress VPC support to security group rul...#202
cderamus wants to merge 2 commits intoapache:trunkfrom
DivvyCloud:LIBCLOUD-466_Add_VPC_Ingress_Egress_Rules

Conversation

@cderamus
Copy link
Copy Markdown
Contributor

...es

Comment thread libcloud/compute/drivers/ec2.py Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could get rid of two lines if you use enumerate which is considered more "Pythonic".

So something like:

for index, cidr_ip in enumerate(cidr_ips, 1)
...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice call. I will make that change momentarily.

Added additional documentation for user/group pairs.
@Kami
Copy link
Copy Markdown
Member

Kami commented Dec 21, 2013

While merging and testing the patch, I have noticed a test failure under Python 2.5. I have forgot that enumerate function in 2.5 doesn't support start argument.

I've fixed that, squashed the commits and merged patch into trunk.

Thanks!

@cderamus cderamus closed this Dec 22, 2013
@cderamus cderamus deleted the LIBCLOUD-466_Add_VPC_Ingress_Egress_Rules branch December 22, 2013 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants