mirror of
https://github.com/samba-team/samba.git
synced 2025-12-20 16:23:51 +03:00
python/samba: changes to make samba.tests.samba_tool.join run under py3
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
94c23ee046
commit
c6100d777b
@@ -891,7 +891,7 @@ class cmd_domain_backup_offline(samba.netcmd.Command):
|
||||
# If more than one directory is a parent of this path, then at least
|
||||
# one configured path is a subdir of another. Use closest match.
|
||||
if len(matching_dirs) > 1:
|
||||
arc_path, fs_path = max(matching_dirs, key=lambda (_, p): len(p))
|
||||
arc_path, fs_path = max(matching_dirs, key=lambda p: len(p[1]))
|
||||
arc_path += path[len(fs_path):]
|
||||
|
||||
return arc_path
|
||||
|
||||
Reference in New Issue
Block a user