Gaurav Aradhye created CLOUDSTACK-7685:
------------------------------------------
Summary:
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
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)