eclipse-bluechi / bluechi

Eclipse BlueChi is a systemd service controller intended for multi-node environments with a predefined number of nodes and with a focus on highly regulated ecosystems such as those requiring functional safety.
https://bluechi.readthedocs.io/en/latest/
GNU Lesser General Public License v2.1
130 stars 37 forks source link

`bluechictl status <node> <units>` does not accept multiple units #869

Closed engelmi closed 4 months ago

engelmi commented 4 months ago

Describe the bug

Currently, the src/client/method-status.c does not accept multiple units for bluechictl status <node> <unit1> <unit2> ... and simply fails. This is due to the switch in method_status(...): https://github.com/eclipse-bluechi/bluechi/blob/main/src/client/method-status.c#L647-L660

argc is larger than 2 if multiple units are being passed to the bluechictl status command.

To Reproduce

Setting up bluechi-controller and bluechi-agent and running

bluechictl status <node> <unit1> <unit2>

Expected behavior

The command should show the status for all units listed.

ArtiomDivak commented 4 months ago

Hi please add me to the assignment

engelmi commented 4 months ago

Fixed in https://github.com/eclipse-bluechi/bluechi/pull/871. Closing.