From 4d21b7e71d301a581e9ba724c17ac4ce9e80b1a7 Mon Sep 17 00:00:00 2001 From: chidanandpujar Date: Wed, 18 Oct 2023 15:00:57 +0530 Subject: [PATCH] Fix for issue #1273 for X100-202310100600.0-EVO --- lib/jnpr/junos/facts/swver.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/jnpr/junos/facts/swver.py b/lib/jnpr/junos/facts/swver.py index 6609a0021..b40e01945 100644 --- a/lib/jnpr/junos/facts/swver.py +++ b/lib/jnpr/junos/facts/swver.py @@ -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: