Juniper / py-junos-eznc

Python library for Junos automation
https://www.juniper.net/documentation/en_US/junos-pyez/information-products/pathway-pages/junos-pyez-developer-guide.html
Apache License 2.0
670 stars 344 forks source link

add 'member' to reboot RPC only when it's not None #1290

Closed MicLennartz closed 9 months ago

MicLennartz commented 9 months ago

The current logic adds the 'member' attribute to the request-reboot RPC, even if the member attribute is 'None' (default) while the target device is running on a single-node virtual chassis.

This causes the RPC call to fail.

-> parentheses were missing to reflect the right logic