1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

netcmd: delegation: move line down where it gets used

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
This commit is contained in:
Rob van der Linde 2024-02-12 16:02:22 +13:00 committed by Andrew Bartlett
parent 1608dde944
commit ec6fb98b4a

View File

@ -138,9 +138,9 @@ class cmd_delegation_show(Command):
def run(self, accountname, H=None, credopts=None, sambaopts=None, versionopts=None):
lp = sambaopts.get_loadparm()
creds = credopts.get_credentials(lp)
paths = provision.provision_paths_from_lp(lp, lp.get("realm"))
if H is None:
paths = provision.provision_paths_from_lp(lp, lp.get("realm"))
path = paths.samdb
else:
path = H