You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "Michael van de Waeter (JIRA)" <ji...@apache.org> on 2016/03/04 16:20:40 UTC

[jira] [Closed] (LIBCLOUD-805) ex_modify_instance_attribute is defined twice, but Python doesn't do function overloading

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

Michael van de Waeter closed LIBCLOUD-805.
------------------------------------------
    Resolution: Not A Problem

> 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
>              Labels: easyfix
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> 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)