From 39f0b83101e113cd32a46b428088d398f6690d35 Mon Sep 17 00:00:00 2001 From: CodeRusher Date: Thu, 9 Nov 2023 18:59:37 +0800 Subject: [PATCH] fix: config commit --force not work Signed-off-by: CodeRusher --- cli/command/config/commit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/command/config/commit.go b/cli/command/config/commit.go index 49b8af80e..51cc4a2ab 100644 --- a/cli/command/config/commit.go +++ b/cli/command/config/commit.go @@ -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 }