HomeClusterLabs Projects

Refactor: tools: Rename a function to clean_up_on_connection_failure.

Description

Refactor: tools: Rename a function to clean_up_on_connection_failure.

And only call it if rc is not pcmk_rc_ok. After working with this
function a little bit, the previous behavior just seemed weird. In
particular, the block in one_shot where it's called and then clean_up is
called right after is odd.

Details

Provenance
clumensAuthored on Mar 1 2022, 2:42 PM
Parents
rPa5db0024f2dd: Merge pull request #2650 from kgaillot/best-practices
Branches
Unknown
Tags
Unknown

Event Timeline