From: Rob van der Linde Date: Wed, 21 Feb 2024 01:00:21 +0000 (+1300) Subject: netcmd: models: Model.get_object_class returns top instead of None X-Git-Tag: tdb-1.4.11~1578 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f90e09a2856d56beb15aef8f2696ad57776f7ea8;p=thirdparty%2Fsamba.git netcmd: models: Model.get_object_class returns top instead of None Signed-off-by: Rob van der Linde Reviewed-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/python/samba/netcmd/domain/models/model.py b/python/samba/netcmd/domain/models/model.py index efb50017bbd..6346f763056 100644 --- a/python/samba/netcmd/domain/models/model.py +++ b/python/samba/netcmd/domain/models/model.py @@ -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):