[
https://issues.apache.org/jira/browse/LIBCLOUD-563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14008786#comment-14008786
]
Lior Goikhburg commented on LIBCLOUD-563:
-----------------------------------------
actually the problem is in this function _get_common_security_group_params all
methods that use it are affected
https://github.com/apache/libcloud/blob/trunk/libcloud/compute/drivers/ec2.py#L4584
> 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
> exception:
> {code}
> > 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-...")
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)