fix typo in ele2dtree
[ncclient] / ncclient / content.py
index e9baec8..9186629 100644 (file)
@@ -115,7 +115,7 @@ class Element:
             'attributes': ele.attrib,
             'text': ele.text,
             'tail': ele.tail,
-            'subtree': [ Element.DictTree(child) for child in root.getchildren() ]
+            'subtree': [ Element.DictTree(child) for child in ele.getchildren() ]
         }
 
     @staticmethod