Skip to content

Commit 006ec44

Browse files
Merge pull request #1338 from dineshbaburam91/issue_1325
Fixed the version check
2 parents 9cf7d1e + 0d04514 commit 006ec44

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/jnpr/junos/device.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -870,9 +870,8 @@ def execute(self, rpc_cmd, ignore_warning=False, **kvargs):
870870
"JSON",
871871
]:
872872
ver_info = self.facts.get("version_info")
873-
if (
874-
ver_info
875-
and ver_info.major[0] >= 15
873+
if ver_info and (
874+
ver_info.major[0] >= 15
876875
or (ver_info.major[0] == 14 and ver_info.major[1] >= 2)
877876
):
878877
try:

0 commit comments

Comments
 (0)