Skip to content

Commit

Permalink
Merge pull request #1274 from chidanandpujar/get_facts_qfx
Browse files Browse the repository at this point in the history
Fix for issue #1273 for X100-202310100600.0-EVO
  • Loading branch information
chidanandpujar authored Oct 26, 2023
2 parents 0745dd0 + 4d21b7e commit 25a5f6b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/jnpr/junos/facts/swver.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ def __init__(self, verstr):
if len(after_type) < 2:
self.build = None
else:
self.build = int(after_type[1])
try:
# handling case for EVO format X100-202310100600.0-EVO
self.build = int(after_type[1])
except:
self.build = None

# X type not hyphen format, perhaps "11.4X12.1", just extract
# build rev or set None
else:
Expand Down

0 comments on commit 25a5f6b

Please sign in to comment.