HomeClusterLabs Projects

Refactor: tools: Some best practices for cli_resource_move()

Description

Refactor: tools: Some best practices for cli_resource_move()

  • Use bool instead of gboolean.
  • Control line lengths.
  • Avoid some nesting.
  • Clean up spacing.
  • Use correct printf() specifier for unsigned in the out->info() call for (count > 1).
  • Explicitly compare against NULL.
  • Use variable for "promoted" vs. "active".
  • Add a TODO in a block of dead code.

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

Details

Provenance
nrwahl2Authored on Tue, Mar 4, 12:19 AM
Parents
rP23180a9eec6c: Refactor: tools: Take pcmk_node_t in cli_cleanup_all()
Branches
Loading...
Tags
Loading...