From cba44b7a534bc896572dbf6a9a3a7911cf34ed13 Mon Sep 17 00:00:00 2001 From: Chris Moore Date: Wed, 23 Aug 2023 12:46:43 -0500 Subject: [PATCH] fix call to lxml.etree._ElementTree.getparent (#1796) --- napalm/junos/junos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/napalm/junos/junos.py b/napalm/junos/junos.py index e92071011..631824ef6 100644 --- a/napalm/junos/junos.py +++ b/napalm/junos/junos.py @@ -1136,7 +1136,7 @@ def _process_pipe(cmd, txt): ) raw_txt = self.device.cli(safe_command, warning=False, format=encoding) if isinstance(raw_txt, etree._Element): - raw_txt = etree.tostring(raw_txt.get_parent()).decode() + raw_txt = etree.tostring(raw_txt.getparent()).decode() cli_output[str(command)] = raw_txt else: cli_output[str(command)] = str(_process_pipe(command, raw_txt))