summaryrefslogtreecommitdiff
path: root/configshell
diff options
context:
space:
mode:
authorJerome Martin <jxm@risingtidesystems.com>2011-06-07 14:34:55 +0200
committerJerome Martin <jxm@risingtidesystems.com>2011-06-08 08:55:40 +0200
commitee2ad046992a92e028e339cd228c672b7cfeda10 (patch)
treeff0f4e61f1eafe68271417de1731c325937f8386 /configshell
parent6f29a787ceac4b92cfe45762a59bb02787531529 (diff)
downloadconfigshell-fb-ee2ad046992a92e028e339cd228c672b7cfeda10.tar.gz
Fixed child name display for add_child error.
Diffstat (limited to 'configshell')
-rw-r--r--configshell/node.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/configshell/node.py b/configshell/node.py
index 7085989..801b2d7 100644
--- a/configshell/node.py
+++ b/configshell/node.py
@@ -1723,7 +1723,7 @@ class ConfigNode(object):
child.name = name
if child.name in [ourchild.name for ourchild in self.children]:
- raise ValueError("Node already has a child named %s" % name)
+ raise ValueError("Node already has a child named %s" % child.name)
else:
child.parent = self
self._children.add(child)