Skip to content

Commit

Permalink
fix call to lxml.etree._ElementTree.getparent (#1796)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismooredev committed Aug 23, 2023
1 parent d0097a1 commit cba44b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion napalm/junos/junos.py
Expand Up @@ -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))
Expand Down

0 comments on commit cba44b7

Please sign in to comment.