From 8761f250f56e3a66290da23a029bec483adcda68 Mon Sep 17 00:00:00 2001 From: Shao Huan Qing Date: Sun, 6 Nov 2022 20:54:36 +0800 Subject: [PATCH] Changed --- server/api/cluster/operation/download_binaries.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/cluster/operation/download_binaries.go b/server/api/cluster/operation/download_binaries.go index 85c9d03..e6c2092 100644 --- a/server/api/cluster/operation/download_binaries.go +++ b/server/api/cluster/operation/download_binaries.go @@ -39,7 +39,7 @@ func DownloadBinaries(c *gin.Context) { failedNodes := "" for _, nodeStatus := range status.NodeStatus { logrus.Trace(nodeStatus) - if nodeStatus.Changed != "0" && nodeStatus.Unreachable == "0" && nodeStatus.Failed == "0" { + if nodeStatus.OK != "0" && nodeStatus.Unreachable == "0" && nodeStatus.Failed == "0" { common.MapDelete(clusterMetadata.Inventory, "all.hosts."+nodeStatus.NodeName+".kuboardspray_require_download") count++ nodes += nodeStatus.NodeName + ","