Skip to content

Commit

Permalink
Dev: ui_configure: verify all cib objects even if there is no primiti…
Browse files Browse the repository at this point in the history
…ve resource configured

To ensure consistent behavior for warnings, see
#861 (comment)
  • Loading branch information
liangxin1300 committed Feb 3, 2024
1 parent 1d89c5b commit f237c78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crmsh/ui_configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f237c78

Please sign in to comment.