HomeClusterLabs Projects

Refactor: libpacemaker: Unpack status in pcmk__schedule_actions()

Description

Refactor: libpacemaker: Unpack status in pcmk__schedule_actions()

pcmk__schedule_actions() expects that cluster_status() has already been
called, so just do it at the beginning. cluster_status() now checks
whether it's already been called and returns early if so, so this is
safe.

We actually did something similar in pcmkschedule_actions() until a
few commits ago, but the intermediate commits were clearer without
pcmk
schedule_actions() calling cluster_status().

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Jan 25 2025, 6:51 PM
Parents
rP5dbc81938ca4: Fix: libpe_status: Make cluster_status() idempotent
Branches
Unknown
Tags
Unknown