HomeClusterLabs Projects

Refactor: tools: Move the need_init block up out of the loop.

Description

Refactor: tools: Move the need_init block up out of the loop.

It only ever gets run once, thanks to the static need_init variable, so
there's no benefit to running it in a loop. Hopefully this makes
further refactoring a little bit easier.

Details

Provenance
clumensAuthored on Apr 2 2024, 1:01 PM
Parents
rP7c672c13ed48: Refactor: tools: Split building the resource list into its own function.
Branches
Unknown
Tags
Unknown