libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lior Goikhburg (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (LIBCLOUD-563) Reserved variable name "id" is used in many methods of ec2 driver
Date Thu, 29 May 2014 11:36:01 GMT

     [ https://issues.apache.org/jira/browse/LIBCLOUD-563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lior Goikhburg closed LIBCLOUD-563.
-----------------------------------

    Resolution: Duplicate

was fixed here
https://github.com/apache/libcloud/pull/301

> 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)

Mime
View raw message