HomeClusterLabs Projects

Refactor: libcrmcommon: Return standard code from pcmk__scan_nvpair()

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 Tue, Mar 4, 9:49 PM
Parents
rPebb13541e17c: Merge pull request #3823 from clumens/crm_simulate-tests
Branches
Unknown
Tags
Unknown