Skip to content

Commit

Permalink
add 'member' to reboot RPC only when it's not None
Browse files Browse the repository at this point in the history
parentheses were missing to reflect the right logic
  • Loading branch information
MicLennartz authored Jan 11, 2024
1 parent 53054ea commit 4a29a05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jnpr/junos/utils/sw.py
Original file line number Diff line number Diff line change
Expand Up @@ -1131,8 +1131,8 @@ def _system_operation(
elif self._mixed_VC is True:
cmd.append(E("all-members"))
elif (
self._multi_VC_nsync is True
or self._multi_VC is True
(self._multi_VC_nsync is True
or self._multi_VC is True)
and member_id is not None
):
cmd.append(E("member", str(member_id)))
Expand Down

0 comments on commit 4a29a05

Please sign in to comment.