HomeClusterLabs Projects

Refactor: scheduler: simplify checking instance state

Description

Refactor: scheduler: simplify checking instance state

Previously, clone_update_pseudo_status() and clone_create_pseudo_actions() used
booleans to model whether an instance or any instance was active, starting,
stopping, or restarting.

This simplifies and becomes more readable when using a bitmask instead.

Also, compare action names case-sensitively.

Details

Provenance
kgaillotAuthored on Jul 6 2022, 4:52 PM
Parents
rP73210011542a: Log: scheduler: downgrade message about instance where it shouldn't be
Branches
Unknown
Tags
Unknown