Skip to content

Commit ec66b41

Browse files
Fix for sw reboot when member_id is not set
1 parent f68c89c commit ec66b41

File tree

1 file changed

+3
-1
lines changed
  • lib/jnpr/junos/utils

1 file changed

+3
-1
lines changed

lib/jnpr/junos/utils/sw.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,9 @@ def reboot(
12151215
* reboot message (string) if command successful
12161216
"""
12171217

1218-
if (self._multi_VC_nsync is True or self._multi_VC is True) and member_id is not None:
1218+
if (
1219+
self._multi_VC_nsync is True or self._multi_VC is True
1220+
) and member_id is not None:
12191221
vc_members = [
12201222
re.search(r"(\d+)", x).group(1)
12211223
for x in self._RE_list

0 commit comments

Comments
 (0)