HomeClusterLabs Projects

LVM-activate: Fix return value in lvm_status()

Description

LVM-activate: Fix return value in lvm_status()

lvm_status() returns 0 instead of OCF_ERR_CONFIGURED if OCF_CHECK_LEVEL
has an unsupported value. This commit fixes the return value. It also
removes the case statement from its "if" nesting, adding the "0" check
as a case.

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

Details

Provenance
nrwahl2Authored on Nov 30 2020, 4:43 AM
Parents
rR3102884f9598: LVM-activate: Remove local variables (bashisms)
Branches
Unknown
Tags
Unknown

Event Timeline