Skip to content

Commit

Permalink
fix: config commit --force not work
Browse files Browse the repository at this point in the history
Signed-off-by: CodeRusher <[email protected]>
  • Loading branch information
CodeRusher committed Nov 9, 2023
1 parent 48abdf1 commit 39f0b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/command/config/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func checkTopology(curveadm *cli.CurveAdm, data string, options commitOptions) e
func runCommit(curveadm *cli.CurveAdm, options commitOptions) error {
// 1) parse cluster topology
_, err := curveadm.ParseTopology()
if err != nil && !skipError(err) {
if err != nil && !skipError(err) && !options.force {
return err
}

Expand Down

0 comments on commit 39f0b83

Please sign in to comment.