HomeClusterLabs Projects

Refactor: scheduler: best practices for filter_anonymous_instance()

Description

Refactor: scheduler: best practices for filter_anonymous_instance()

filter_anonymous_instance() and the code surrounding its lone call were
confusingly difficult to follow.

Rename it to promotion_score_applies() for readability, and incorporate the
tests that were around its call, to simplify the caller. Also add a
doxygen block, and improve variable names, comments, log messages, and
formatting.

Details

Provenance
kgaillotAuthored on May 17 2022, 12:08 PM
Parents
rP87c0e1ed0692: Refactor: scheduler: functionize checking whether node is allowed to run…
Branches
Unknown
Tags
Unknown