Skip to content

Commit

Permalink
Dev: ui_cib: crm_shadow reset requires '--force' option
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxin1300 committed Feb 13, 2025
1 parent 6181ab3 commit e465a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crmsh/ui_cib.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def do_reset(self, context, name):
"usage: reset <shadow_cib>"
if not utils.is_filename_sane(name):
context.fatal_error("Bad filename: " + name)
if utils.ext_cmd("%s -r '%s'" % (self.extcmd, name)) == 0:
if utils.ext_cmd(f"{self.extcmd} -r '{name}' --force") == 0:
context.info("copied live CIB to %s" % name)
else:
context.fatal_error("failed to copy live CIB to %s" % name)
Expand Down

0 comments on commit e465a0c

Please sign in to comment.