1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

netcmd: models: fix incorrect return type should not be User

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Rob van der Linde 2023-11-09 00:41:51 +13:00 committed by Andrew Bartlett
parent 42be08c192
commit 422cc1d17d

View File

@ -258,7 +258,7 @@ class Model(metaclass=ModelMeta):
:param ldb: Ldb connection
:param kwargs: Search criteria as keyword args
:returns: User object or None if not found
:returns: Model instance or None if not found
:raises: MultipleObjects returned if there are more than one results
"""
# If a DN is provided use that to get the object directly.