HomeClusterLabs Projects

Fix: tools: constrain node IDs to non-negative values for crm_node -N

Description

Fix: tools: constrain node IDs to non-negative values for crm_node -N

Previously, crm_node called crm_parse_int() which would map invalid text to -1.
Now, map it to 0. The effect shouldn't be substantially different but will
allow us to deprecate crm_parse_int().

Details

Provenance
kgaillotAuthored on Mar 19 2021, 6:53 PM
Parents
rPb9ffce2bf4ff: Low: tools: treat invalid error codes as unknown in crm_error
Branches
Unknown
Tags
Unknown

Event Timeline