Skip to content

Commit

Permalink
Merge pull request #1290 from MicLennartz/patch-1
Browse files Browse the repository at this point in the history
add 'member' to reboot RPC only when it's not None
  • Loading branch information
dineshbaburam91 authored Jan 15, 2024
2 parents 16deddb + 5c67fce commit 422ca38
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/jnpr/junos/utils/sw.py
Original file line number Diff line number Diff line change
Expand Up @@ -1131,10 +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
and member_id is not None
):
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)))
if in_min >= 0 and at is None:
cmd.append(E("in", str(in_min)))
Expand Down

0 comments on commit 422ca38

Please sign in to comment.