HomeClusterLabs Projects

Refactor: libcrmcommon: Iterate only once in pcmk__substitute_secrets()

Description

Refactor: libcrmcommon: Iterate only once in pcmk__substitute_secrets()

Previously we were iterating over the whole hash table once to filter
out secret parameters into a list, and then iterating over the list to
process the secret parameters. Instead, just iterate over the hash table
and do work if we need to.

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

Details

Provenance
nrwahl2Authored on Sat, Mar 1, 2:14 AM
Parents
rP536a8c1841be: Refactor: libcrmcommon: Drop forward declarations from cib_secrets.c
Branches
Unknown
Tags
Unknown