]> xenbits.xensource.com Git - xenrt-citrix/xenrt.git/commitdiff
use attibute instead of lookup
authorCraig Orendi <craig.orendi@citrix.com>
Tue, 20 Oct 2015 11:14:31 +0000 (12:14 +0100)
committerCraig Orendi <craig.orendi@citrix.com>
Tue, 3 Nov 2015 10:23:46 +0000 (10:23 +0000)
exec/testcases/xenserver/tc/dotnetagentlicensing.py

index 1e5c9f793c5eca0328419ddffbee4cfdb089fbed..1ccae032040e51ed4f6e569934562af5b327342a 100755 (executable)
@@ -17,7 +17,7 @@ class DotNetAgentAdapter(object):
 
     def applyLicense(self, hostOrPool, sku = None):
         if sku == None:
-            sku = xenrt.TEC().lookup("LICENSED_EDITION")
+            sku = self.licensedEdition
         if issubclass(type(hostOrPool),Pool):
             license = self.licenseFactory.licenseForPool(hostOrPool, sku)
         else: