chaos / powerman

cluster power control
GNU General Public License v2.0
43 stars 19 forks source link

powerman: use singlet script if targeting one plug #170

Closed chu11 closed 7 months ago

chu11 commented 7 months ago

Problem: When selecting a script to use for an action (i.e. power on) powerman may select the "all" or "ranged" script if they are available. This is done even if a single plug is targeted. There is nothing wrong with this, but may not be what users expect.

If the user is specifically targeting only one plug, select the singlet script over any other script.

chu11 commented 7 months ago

FYI based on conversation in #168