From: Douglas Bagnall Date: Thu, 11 Oct 2018 00:11:06 +0000 (+1300) Subject: python/subnets: use the correct variable name X-Git-Tag: tdb-1.3.17~1033 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf7f14a4be12f2e677d8ce5f2a7b00102f69b87d;p=thirdparty%2Fsamba.git python/subnets: use the correct variable name Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- diff --git a/python/samba/subnets.py b/python/samba/subnets.py index 50c6e58cb99..986274fe661 100644 --- a/python/samba/subnets.py +++ b/python/samba/subnets.py @@ -156,7 +156,7 @@ def rename_subnet(samdb, configDn, subnet_name, new_name): except LdbError as e2: (enum, estr) = e2.args if enum == ldb.ERR_NO_SUCH_OBJECT: - raise SubnetNotFound('Subnet %s does not exist' % subnet) + raise SubnetNotFound('Subnet %s does not exist' % dnsubnet) elif enum == ldb.ERR_ENTRY_ALREADY_EXISTS: raise SubnetAlreadyExists('A subnet with the CIDR %s already exists' % new_name)