From cf7f14a4be12f2e677d8ce5f2a7b00102f69b87d Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Thu, 11 Oct 2018 13:11:06 +1300 Subject: [PATCH] python/subnets: use the correct variable name Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power --- python/samba/subnets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.2