Lior Goikhburg created LIBCLOUD-563:
---------------------------------------

             Summary: Reserved variable name "id" is used in many methods of 
ec2 driver
                 Key: LIBCLOUD-563
                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-563
             Project: Libcloud
          Issue Type: Bug
            Reporter: Lior Goikhburg


There is a bug in ec2 driver method ex_authorize_security_group_ingress is 
broken, and I expect all other methods, that use a reserved name "id" as a 
variable name in ec2 driver

example:
https://github.com/apache/libcloud/blob/trunk/libcloud/compute/drivers/ec2.py#L2708
https://github.com/apache/libcloud/blob/trunk/libcloud/compute/drivers/ec2.py#L2747

provider.connection.ex_authorize_security_group_ingress('sg-c8fb14ad', '669', 
'669', cidr_ips='100.100.4.0/24')
*** Exception: InvalidGroupId.Malformed: Invalid id: "<built-in function id>" 
(expecting "sg-...")



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to