From f237c78c4ce46014b4376c3d3a07ecba440dcc93 Mon Sep 17 00:00:00 2001 From: xin liang Date: Sat, 3 Feb 2024 19:08:53 +0800 Subject: [PATCH] Dev: ui_configure: verify all cib objects even if there is no primitive resource configured To ensure consistent behavior for warnings, see https://github.com/ClusterLabs/crmsh/issues/861#issuecomment-1022779253 --- crmsh/ui_configure.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crmsh/ui_configure.py b/crmsh/ui_configure.py index 67070edc00..8ec4f88a40 100644 --- a/crmsh/ui_configure.py +++ b/crmsh/ui_configure.py @@ -913,8 +913,7 @@ def _commit(self, force=False, replace=False): rc1 = True if replace and not force: rc1 = cib_factory.is_current_cib_equal() - rc2 = cib_factory.has_no_primitives() or \ - self._verify(mkset_obj("xml", "changed"), mkset_obj("xml")) + rc2 = self._verify(mkset_obj("xml", "changed"), mkset_obj("xml")) if rc1 and rc2: return cib_factory.commit(replace=replace) if force or config.core.force: