Skip to content

Commit a1e7fee

Browse files
Gaurav AradhyeSrikanteswaraRao Talluri
authored andcommitted
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 <talluri@apache.org>
1 parent b1ab888 commit a1e7fee

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

‎test/integration/component/test_escalations_templates.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,9 +839,8 @@ def test_04_copy_template(self):
839839
count = count + 1
840840

841841
# Copying the Template from Zone1 to Zone2
842-
copied_template = Template.copy(
842+
copied_template = template_created.copy(
843843
self.userapiclient,
844-
template_created.id,
845844
sourcezoneid=template_created.zoneid,
846845
destzoneid=zones_list[1].id
847846
)

‎tools/marvin/marvin/lib/base.py‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,17 +1255,6 @@ def update(self, apiclient, **kwargs):
12551255
[setattr(cmd, k, v) for k, v in kwargs.items()]
12561256
return(apiclient.updateTemplate(cmd))
12571257

1258-
@classmethod
1259-
def copy(cls, apiclient, id, sourcezoneid, destzoneid):
1260-
"Copy Template from source Zone to Destination Zone"
1261-
1262-
cmd = copyTemplate.copyTemplateCmd()
1263-
cmd.id = id
1264-
cmd.sourcezoneid = sourcezoneid
1265-
cmd.destzoneid = destzoneid
1266-
1267-
return apiclient.copyTemplate(cmd)
1268-
12691258
def copy(self, apiclient, sourcezoneid, destzoneid):
12701259
"Copy Template from source Zone to Destination Zone"
12711260

0 commit comments

Comments
 (0)