1
0
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:
Rob van der Linde 2024-02-21 14:00:21 +13:00 committed by Andrew Bartlett
parent b3cc3ade43
commit f90e09a285

View File

@ -21,7 +21,7 @@
#
import inspect
from abc import ABCMeta, abstractmethod
from abc import ABCMeta
from ldb import (ERR_NO_SUCH_OBJECT, FLAG_MOD_ADD, FLAG_MOD_REPLACE,
LdbError, Message, MessageElement, SCOPE_BASE,
@ -137,10 +137,9 @@ class Model(metaclass=ModelMeta):
return cls.get_base_dn(ldb)
@staticmethod
@abstractmethod
def get_object_class():
"""Returns the objectClass for this model."""
pass
return "top"
@classmethod
def from_message(cls, ldb, message):