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 eb37f93 commit f68c89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jnpr/junos/utils/sw.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ def reboot(
* reboot message (string) if command successful
"""

if self._multi_VC_nsync is True or self._multi_VC is True:
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 f68c89c

Please sign in to comment.