HomeClusterLabs Projects

Refactor: libcrmcommon: Return standard code from pcmk__scan_nvpair()
c7a0eaadfe21Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Refactor: libcrmcommon: Return standard code from pcmk__scan_nvpair()

And improve error checking.

There are only two callers, and both of them only cared whether the
return value was 2. So now we return pcmk_rc_ok where we previously
would have returned 2, and we return a standard Pacemaker error code
otherwise.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Mar 4 2025, 9:49 PM
Parents
rPebb13541e17c: Merge pull request #3823 from clumens/crm_simulate-tests
Branches
Loading...
Tags
Loading...

Event Timeline