mirror of
https://github.com/samba-team/samba.git
synced 2025-07-29 15:42:04 +03:00
gpo: Move gp_sec_ext __init__ to base class
For this class to be extensible, the constructor should be available to subclasses. Signed-off-by: David Mulder <dmulder@suse.com> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Douglas Bagnall
parent
cfd2d70889
commit
1d47ab7e2a
@ -286,6 +286,9 @@ class GPOStorage:
|
||||
class gp_ext(object):
|
||||
__metaclass__ = ABCMeta
|
||||
|
||||
def __init__(self, logger):
|
||||
self.logger = logger
|
||||
|
||||
@abstractmethod
|
||||
def list(self, rootpath):
|
||||
pass
|
||||
@ -424,9 +427,6 @@ class gp_sec_ext(gp_ext):
|
||||
|
||||
count = 0
|
||||
|
||||
def __init__(self, logger):
|
||||
self.logger = logger
|
||||
|
||||
def __str__(self):
|
||||
return "Security GPO extension"
|
||||
|
||||
|
Reference in New Issue
Block a user