HomeClusterLabs Projects

Refactor: tools: NULL-check filename2xml() in crm_shadow

Description

Refactor: tools: NULL-check filename2xml() in crm_shadow

No new cts-cli tests for these cases, as I haven't figured out a way to
add them. A nonexistent file hits the check_file_exists() check. An
invalid XML file triggers a fatal assertion, but crm_shadow doesn't end
up returning CRM_EX_NOINPUT, so maybe filename2xml() isn't returning
NULL.

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

Details

Provenance
nrwahl2Authored on Mar 6 2023, 5:39 AM
Parents
rP8f537c8443df: Refactor: Functionize --create[-empty], --reset in crm_shadow
Branches
Unknown
Tags
Unknown