From c3ad137eb6bdbdc99cc2cc615ca3378a19b6cfa9 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Wed, 7 Mar 2018 11:40:00 +1300 Subject: [PATCH] samba-tool visualize: fix wrong variable name in get_partition() Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- python/samba/netcmd/visualize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/samba/netcmd/visualize.py b/python/samba/netcmd/visualize.py index efae28ea086..e8fff9407ed 100644 --- a/python/samba/netcmd/visualize.py +++ b/python/samba/netcmd/visualize.py @@ -225,7 +225,7 @@ def get_partition(samdb, part): short_partitions, long_partitions = get_partition_maps(samdb) part = short_partitions.get(part.upper(), part) if part not in long_partitions: - raise CommandError("unknown partition %s" % partition) + raise CommandError("unknown partition %s" % part) return part -- 2.11.4.GIT