From ec66b417c20d4038419694131eeed099b718f77f Mon Sep 17 00:00:00 2001 From: chidanandpujar Date: Tue, 4 Feb 2025 15:41:24 +0530 Subject: [PATCH] Fix for sw reboot when member_id is not set --- lib/jnpr/junos/utils/sw.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/jnpr/junos/utils/sw.py b/lib/jnpr/junos/utils/sw.py index acdd72bf5..0774ca3a1 100644 --- a/lib/jnpr/junos/utils/sw.py +++ b/lib/jnpr/junos/utils/sw.py @@ -1215,7 +1215,9 @@ def reboot( * reboot message (string) if command successful """ - if (self._multi_VC_nsync is True or self._multi_VC is True) and member_id is not None: + if ( + self._multi_VC_nsync is True or self._multi_VC is True + ) and member_id is not None: vc_members = [ re.search(r"(\d+)", x).group(1) for x in self._RE_list