Pearl1594 commented on code in PR #10761:
URL: https://github.com/apache/cloudstack/pull/10761#discussion_r2057422257


##########
test/integration/smoke/test_nonstrict_affinity_group.py:
##########
@@ -54,7 +55,11 @@ def setUpClass(cls):
 
         zone = get_zone(cls.apiclient, cls.testClient.getZoneForTests())
         cls.zone = Zone(zone.__dict__)
-        cls.template = get_template(cls.apiclient, cls.zone.id)
+        cls.hypervisor = cls.testClient.getHypervisorInfo()
+        if cls.hypervisor.lower() not in ["xenserver"]:
+            cls.template = get_template(cls.apiclient, cls.zone.id)
+        else:
+            cls.template = get_test_template(cls.apiclient, cls.zone.id, 
cls.hypervisor)

Review Comment:
   only xen requires a template with pv drivers / xen tools installed. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to