HomeClusterLabs Projects

Refactor: scheduler: make assign_best_node() take const node

Description

Refactor: scheduler: make assign_best_node() take const node

This is a little clunky but lets assign_best_node() use const for its node
argument, by refactoring pcmk__ban_insufficient_capacity() to return a
better node when appropriate rather than taking and overwriting a node
argument.

Details

Provenance
kgaillotAuthored on Sep 22 2022, 4:35 PM
Parents
rPa318b2146068: Merge pull request #2892 from kgaillot/best-practices
Branches
Unknown
Tags
Unknown