From 4a29a0540fb02c85da5eeabd458373b54ab4eb4e Mon Sep 17 00:00:00 2001 From: MicLennartz Date: Thu, 11 Jan 2024 16:04:11 +0100 Subject: [PATCH] add 'member' to reboot RPC only when it's not None parentheses were missing to reflect the right logic --- lib/jnpr/junos/utils/sw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jnpr/junos/utils/sw.py b/lib/jnpr/junos/utils/sw.py index 0231ff383..1203d9100 100644 --- a/lib/jnpr/junos/utils/sw.py +++ b/lib/jnpr/junos/utils/sw.py @@ -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)))