HomeClusterLabs Projects

Refactor: scheduler: consolidate node attribute getters

Description

Refactor: scheduler: consolidate node attribute getters

Replace pe_node_attribute_calculated() and pe_node_attribute_raw() with a
single new function pcmk__node_attr() in libcrmcommon.

The new function takes the value of the container attribute target rather than
a resource, so that the force_host argument can be dropped.

Details

Provenance
kgaillotAuthored on May 25 2023, 4:50 PM
Parents
rPc23a6dbd6999: Refactor: libcrmcommon: rename attrd_internal.h to attrs_internal.h
Branches
Unknown
Tags
Unknown