HomeClusterLabs Projects

Refactor: scheduler: Split resource-config message by output format.

Description

Refactor: scheduler: Split resource-config message by output format.

The text formatter is the only one that wants to output the "Resource
XML:" string, and that's really only there to keep it visually separated
from the rest of the resource's output for the end user. Thus, it makes
sense that the text message should be its own function separate from any
default.

This also eliminates an incorrect use of pcmk__formatted_printf, which
won't do anything for non-text formats anyway.

Details

Provenance
clumensAuthored on Sep 6 2022, 5:45 PM
Parents
rP3facb9e258a1: Refactor: tools: Use bool instead of gboolean in cli_resource_print arg.
Branches
Unknown
Tags
Unknown