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:
parent
1608dde944
commit
ec6fb98b4a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user