libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael van de Waeter (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LIBCLOUD-805) ex_modify_instance_attribute is defined twice, but Python doesn't do function overloading
Date Fri, 04 Mar 2016 15:16:40 GMT
Michael van de Waeter created LIBCLOUD-805:
----------------------------------------------

             Summary: ex_modify_instance_attribute is defined twice, but Python doesn't do
function overloading
                 Key: LIBCLOUD-805
                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-805
             Project: Libcloud
          Issue Type: Bug
            Reporter: Michael van de Waeter
            Priority: Minor


In libcloud/compute/drivers/ec2.py, the function ex_modify_instance_attribute
 is defined twice.

Once like so:
def ex_modify_instance_attribute(self, node, attributes):

and later like so:
    def ex_modify_instance_attribute(self, node,   disable_api_termination=None,
                                     ebs_optimized=None, group_id=None,
                                     source_dest_check=None, user_data=None,
                                     instance_type=None):

However, I can not use the first one, because it will just call the second one without attributes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message