From df0657f676e7ecd5fa08bcb81a3372724a41d776 Mon Sep 17 00:00:00 2001 From: Chris Harding Date: Wed, 11 Nov 2015 12:36:31 +0000 Subject: [PATCH] Epiphany - maybe add a return --- exec/xenrt/lib/xenserver/dotnetagentlicensing.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/exec/xenrt/lib/xenserver/dotnetagentlicensing.py b/exec/xenrt/lib/xenserver/dotnetagentlicensing.py index 635d8e978..28e42c4b4 100755 --- a/exec/xenrt/lib/xenserver/dotnetagentlicensing.py +++ b/exec/xenrt/lib/xenserver/dotnetagentlicensing.py @@ -67,6 +67,9 @@ class DotNetAgent(object): class LicensedFeature(object): __metaclass__ = ABCMeta + def __init__(self): + self.actor = None + @abstractmethod def isLicensed(self): pass @@ -82,7 +85,7 @@ class ActorAbstract(LicensedFeature): self.actor = actor def isActive(self): - self.actor.isActive() + return self.actor.isActive() def enable(self): self.actor.enable() @@ -100,7 +103,7 @@ class ActorAbstract(LicensedFeature): self.actor.defaultURL() def checkKeyPresent(self): - self.actor.checkKeyPresent() + return self.actor.checkKeyPresent() class ActorImp(object): -- 2.39.5