HomeClusterLabs Projects

Refactor: tools: Add formatted output messages for attribute updates.

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Refactor: tools: Add formatted output messages for attribute updates.

We only want to output the list header if we're doing an XML output
format since crm_resource already outputs attribute changes in text mode
without any list header. We don't want to break tools that might be
relying on that information.

Thus, we need to build up a list of results as we loop through
update_attribute and only once that function is done, pass the entire
list of results to an output function. And in order to do that, we need
to build up a structure that holds the pieces of information we'll
output.

There's not really a good way to accomplish the same thing without
knowing what the output format is going to be, which is something we try
very hard to avoid.

Fixes T614

Details

Provenance
clumensAuthored on Apr 1 2024, 10:13 AM
Tasks
Restricted Maniphest Task

Commit No Longer Exists

This commit no longer exists in the repository.