mirror of
https://github.com/samba-team/samba.git
synced 2025-12-16 00:23:52 +03:00
samba_kcc: avoid crash on odd networks with --dot-file-dir
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
committed by
Douglas Bagnall
parent
84ea6bc645
commit
822c4b9852
@@ -49,6 +49,10 @@ def write_dot_file(basename, edge_list, vertices=None, label=None,
|
||||
|
||||
for i, edge in enumerate(edge_list):
|
||||
a, b = edge
|
||||
if a is None:
|
||||
a = "Missing source value"
|
||||
if b is None:
|
||||
b = "Missing destination value"
|
||||
if reformat_labels:
|
||||
a = a.replace(',', '\\n')
|
||||
b = b.replace(',', '\\n')
|
||||
|
||||
Reference in New Issue
Block a user