You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/11/04 07:31:34 UTC
[jira] [Commented] (CLOUDSTACK-7685)
test_escalations_templates.TestTemplates.test_04_copy_template failing due
to template copy method call failed
[ https://issues.apache.org/jira/browse/CLOUDSTACK-7685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14195778#comment-14195778 ]
ASF subversion and git services commented on CLOUDSTACK-7685:
-------------------------------------------------------------
Commit d5316d0572df0843a5decb69c0385fc5fcf192b0 in cloudstack's branch refs/heads/master from [~gauravaradhye]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=d5316d0 ]
CLOUDSTACK-7685: Fixed copy template method call in test_escalations_template.py. Removed unbound method of the same name as bound method from base library and changed method call accordingly
Signed-off-by: SrikanteswaraRao Talluri <ta...@apache.org>
> test_escalations_templates.TestTemplates.test_04_copy_template failing due to template copy method call failed
> --------------------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-7685
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7685
> Project: CloudStack
> Issue Type: Test
> Security Level: Public(Anyone can view this level - this is the default.)
> Components: Automation
> Affects Versions: 4.5.0
> Reporter: Gaurav Aradhye
> Assignee: Gaurav Aradhye
> Labels: automation
> Fix For: 4.5.0
>
>
> Error details:
> unbound method copy() must be called with Template instance as first argument (got CloudStackAPIClient instance instead)
> Reason:
> There are bound and unbound methods "copy" in Template class with the same name. Apparently when bound and unbound methods with same name are defined, call to unbound method fails.
> Solution:
> Keep only unbound method. And if call is made like a classmethod (Class.method()), then explicitly pass the first argument as instance of class.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)