HomeClusterLabs Projects
Diffusion SBD 1c72cf23561d

Fix: sbd-inquisitor: tolerate and strip any leading spaces of command lineā€¦

Description

Fix: sbd-inquisitor: tolerate and strip any leading spaces of command line option values

Somehow an user's own monitoring agent doesn't well parse an SBD_DEVICE
setting with spaces between the device names:

SBD_DEVICE="/dev/<a>; /dev/<b>; /dev/<c>"

And eventually it calls an sbd command:

sbd list -d " /dev/<b>"

  • A space is prefixed to the device name which is quoted.

Of course it could be easily fixed in the setting or their agent. But
OTOH, sbd'd better tolerate and strip any leading spaces of command line
option values.

Details

Provenance
gao-yanAuthored on Jun 25 2021, 9:21 AM
Parents
rSc1bb2a4d8c8e: Log: sbd-inquisitor: tell the actual watchdog device specified with `-w`
Branches
Unknown
Tags
Unknown

Event Timeline