HomeClusterLabs Projects

Refactor: tools: Best practices in crm_shadow.c:shadow_teardown()

Description

Refactor: tools: Best practices in crm_shadow.c:shadow_teardown()

Remove redundant name argument (was always options.instance), add
doxygen, avoid strstr() for prompt comparison (it should be a full match
anyway), avoid overlong line. Tear down only if CIB_shadow matches the
given instance.

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

Details

Provenance
nrwahl2Authored on Mar 8 2023, 5:03 PM
Parents
rPe64a3f8f2dde: Test: cts-cli: Update to reflect crm_shadow output changes
Branches
Unknown
Tags
Unknown