Skip to content

Commit

Permalink
Merge pull request #1359 from chidanandpujar/sw_reboot_qfx_fix
Browse files Browse the repository at this point in the history
Fix for sw reboot when member_id is not set
  • Loading branch information
dineshbaburam91 authored Feb 10, 2025
2 parents eb37f93 + a36cff3 commit e8684d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/jnpr/junos/ofacts/session.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
facts['HOME'] = login home directory
facts['HOME'] = login home directory
"""

from lxml.builder import E
Expand Down
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:
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 e8684d4

Please sign in to comment.