diff --git a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/TemplateClientLiveTest.java b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/TemplateClientLiveTest.java index e4ca89d875..59cd21e012 100644 --- a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/TemplateClientLiveTest.java +++ b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/TemplateClientLiveTest.java @@ -187,7 +187,7 @@ public class TemplateClientLiveTest extends BaseCloudStackClientLiveTest { assert virtualMachineDestroyed.apply(vm); } if (createdTemplate != null) { - AsyncCreateResponse deleteJob = client.getTemplateClient().deleteTemplate(template.getId()); + AsyncCreateResponse deleteJob = client.getTemplateClient().deleteTemplate(createdTemplate.getId()); assertTrue(jobComplete.apply(deleteJob.getJobId())); client.getTemplateClient().deleteTemplate(createdTemplate.getId()); }