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

samba-tool visualize: fix python2.6 incompatibility

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13337

Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>

Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
Autobuild-Date(master): Wed Mar 21 09:25:51 CET 2018 on sn-devel-144
This commit is contained in:
Björn Baumbach 2018-03-20 12:15:22 +01:00 committed by Douglas Bagnall
parent bddf66c460
commit 9312a1cdaf

View File

@ -176,7 +176,11 @@ def get_partition_maps(samdb):
"DNSDOMAIN": "DC=DomainDnsZones,%s" % base_dn, "DNSDOMAIN": "DC=DomainDnsZones,%s" % base_dn,
"DNSFOREST": "DC=ForestDnsZones,%s" % base_dn "DNSFOREST": "DC=ForestDnsZones,%s" % base_dn
} }
long_to_short = {v: k for k, v in short_to_long.iteritems()}
long_to_short = {}
for s, l in short_to_long.iteritems():
long_to_short[l] = s
return short_to_long, long_to_short return short_to_long, long_to_short