1
0
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:
Noel Power
2018-04-17 16:48:03 +01:00
committed by Andrew Bartlett
parent 94c23ee046
commit c6100d777b
2 changed files with 4 additions and 4 deletions

View File

@@ -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