HomeClusterLabs Projects

Refactor: based: Fix bad sync check in sync_our_cib()

Description

Refactor: based: Fix bad sync check in sync_our_cib()

Previously, if host was NULL, we would try to print it in the
crm_debug() call. Instead of just adding a pcmk__s() call, here we bail
out early and return an error if neither all nor host is set.

We could add a crm_log_xml_info() call for the request but it seems
unnecessary. Especially since the request itself would be fine if all
were set.

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

Details

Provenance
nrwahl2Authored on May 25 2023, 5:19 PM
Parents
rP4145a585e407: Doc: based: Remove meaningless comment from sync_our_cib()
Branches
Unknown
Tags
Unknown