HomeClusterLabs Projects

Fix: tools: crm_shadow --commit now works with CIB_file

Description

Fix: tools: crm_shadow --commit now works with CIB_file

Previously, when the CIB_file environment variable was set and
crm_shadow --commit --force was called, the changes from the shadow
file weren't written to the CIB_file. The changes were made only in
memory.

This commit fixes the issue by calling cib_delete(), which writes out
any changes via cib_file_signoff().

Closes T633

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

Details

Provenance
nrwahl2Authored on Mar 2 2023, 5:17 PM
Parents
rP56731eb06fdf: Test: cts-cli: Add tests for crm_shadow
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task