mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
netcmd: models: Model.get_object_class returns top instead of None
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
b3cc3ade43
commit
f90e09a285
@ -21,7 +21,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import inspect
|
import inspect
|
||||||
from abc import ABCMeta, abstractmethod
|
from abc import ABCMeta
|
||||||
|
|
||||||
from ldb import (ERR_NO_SUCH_OBJECT, FLAG_MOD_ADD, FLAG_MOD_REPLACE,
|
from ldb import (ERR_NO_SUCH_OBJECT, FLAG_MOD_ADD, FLAG_MOD_REPLACE,
|
||||||
LdbError, Message, MessageElement, SCOPE_BASE,
|
LdbError, Message, MessageElement, SCOPE_BASE,
|
||||||
@ -137,10 +137,9 @@ class Model(metaclass=ModelMeta):
|
|||||||
return cls.get_base_dn(ldb)
|
return cls.get_base_dn(ldb)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@abstractmethod
|
|
||||||
def get_object_class():
|
def get_object_class():
|
||||||
"""Returns the objectClass for this model."""
|
"""Returns the objectClass for this model."""
|
||||||
pass
|
return "top"
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_message(cls, ldb, message):
|
def from_message(cls, ldb, message):
|
||||||
|
Loading…
Reference in New Issue
Block a user