Skip to content

Commit

Permalink
Fixed the version check
Browse files Browse the repository at this point in the history
  • Loading branch information
dineshbaburam91 committed Oct 16, 2024
1 parent cc3753f commit 079a60e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jnpr/junos/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,8 +870,8 @@ def execute(self, rpc_cmd, ignore_warning=False, **kvargs):
ver_info = self.facts.get("version_info")
if (
ver_info
and ver_info.major[0] >= 15
or (ver_info.major[0] == 14 and ver_info.major[1] >= 2)
and (ver_info.major[0] >= 15
or (ver_info.major[0] == 14 and ver_info.major[1] >= 2))
):
try:
return json.loads(rpc_rsp_e.text, strict=False)
Expand Down

0 comments on commit 079a60e

Please sign in to comment.