HomeClusterLabs Projects

Low: tools: Fix action danger check in cibadmin

Description

Low: tools: Fix action danger check in cibadmin

Functionize checking whether the action is dangerous based on the
options struct. This way we don't have to check danger while parsing
options, which can result in the action still being deemed dangerous
after being replaced by a "safe" action.

This also facilitates the move to GOption.

Ref T107

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

Details

Provenance
nrwahl2Authored on Nov 23 2022, 5:24 PM
Parents
rPbd66e555d649: Refactor: tools: Add cib_user to options struct in cibadmin
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task