Skip to content

Commit

Permalink
Fix for sw reboot when member_id is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
chidanandpujar committed Feb 4, 2025
1 parent f68c89c commit ec66b41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/jnpr/junos/utils/sw.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec66b41

Please sign in to comment.