Skip to content

Commit

Permalink
Merge pull request #1675 from mayuresh82/jnpr_commit_confirm_fix
Browse files Browse the repository at this point in the history
Fix find for system uptime element
  • Loading branch information
mirceaulinic committed Jul 6, 2022
2 parents f6ce8e7 + 6284f56 commit ea13a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion napalm/junos/junos.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def _get_pending_commits(self):
commit_comment = commit_comment_element.text

sys_uptime_info = self.device.rpc.get_system_uptime_information()
current_time_element = sys_uptime_info.find("./current-time/date-time")
current_time_element = sys_uptime_info.find(".//current-time/date-time")
current_time = int(current_time_element.attrib["seconds"])

# Msg from Jnpr: 'commit confirmed, rollback in 5mins'
Expand Down

0 comments on commit ea13a89

Please sign in to comment.