What steps will reproduce the problem?
1. called revoke( security_group, ip_protocol="tcp", from_port=port,
to_port=port, cidr_ip="0.0.0.0/0" )
with perfectly cromulent arguments
2.
What is the expected output? What do you see instead?
Security group indeed has the rule removed, as expected. But then we get a traceback, ending with:
File "/Library/Python/2.7/site-packages/boto/ec2/securitygroup.py", line 191, in revoke
src_group_owner_id, cidr_ip)
File "/Library/Python/2.7/site-packages/boto/ec2/securitygroup.py", line 122, in remove_rule
if len(rule.grants) == 0:
UnboundLocalError: local variable 'rule' referenced before assignment
What version of the product are you using? On what operating system?
boto 2.1.1 , python 2.7.1 , MacOS 10.7.2
Please provide any additional information below.
Original issue reported on code.google.com by damp...@objectlabs.com on 3 Jan 2012 at 8:03
Original issue reported on code.google.com by
damp...@objectlabs.com
on 3 Jan 2012 at 8:03