HomeClusterLabs Projects

Fix: libcrmcommon: Extend what pcmk__split_range can do.

Description

Fix: libcrmcommon: Extend what pcmk__split_range can do.

  • Handle if the input string consists solely of the separator (return

false, start & end are NULL).

  • Handle a range with no starting value (return true, start is NULL, end

is some value).

  • Handle a range with no ending value (return true, start is some value,

end is NULL).

  • Add test cases for the above.
  • Be a little more explicit about supporting the other cases.

The cron_check macro in lib/pengine/rules.c has been updated to take
into account the possibility that a range with no start is now a valid
possibility.

Details

Provenance
clumensAuthored on Feb 20 2020, 2:58 PM
Parents
rPb90c7b4646d4: Fix: tests: Add tests for the current behavior of pcmk__split_range.
Branches
Unknown
Tags
Unknown

Event Timeline