HomeClusterLabs Projects

Refactor ocf-shellfuncs.in/ocf_run

Description

Refactor ocf-shellfuncs.in/ocf_run

When calling ocf_run people expect that the function returns with the
exit status of the subprocess. In case of 0 exit code we returned
$OCF_SUCCESS which is 0 as well, but that doesn't read well. Refactoring
the return statements, so it is evident that the function always returns
with the exit code of the subprocess.

Details

Provenance
Mate Lakat <mlakat@mlakat.hu>Authored on May 3 2017, 6:00 AM
Parents
rRd64f67e4f8ce: Merge pull request #969 from beekhof/master
Branches
Unknown
Tags
Unknown

Event Timeline