HomeClusterLabs Projects

Refactor: scheduler: drop redundant code in expression evaluation

Description

Refactor: scheduler: drop redundant code in expression evaluation

If a node attribute expression is evaluated, there must be a node given, and
an attribute table is always created for nodes, so it will never be NULL when
it matters.

Besides, contrary to the commented intention, if there are no node attributes,
a test for whether an attribute is undefined can still pass.

Details

Provenance
kgaillotAuthored on May 31 2023, 1:47 PM
Parents
rP34b12da59695: Refactor: libcrmcommon: make some evaluation functions library-private
Branches
Unknown
Tags
Unknown