From 3297f51101358dc08f95cbb5965144574fd40973 Mon Sep 17 00:00:00 2001 From: pixiake Date: Sun, 31 May 2020 15:13:01 +0800 Subject: [PATCH] confirmation before installation --- pkg/cluster/preinstall/precheck.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/cluster/preinstall/precheck.go b/pkg/cluster/preinstall/precheck.go index bd65de45..2289b5ed 100644 --- a/pkg/cluster/preinstall/precheck.go +++ b/pkg/cluster/preinstall/precheck.go @@ -25,7 +25,7 @@ type PrecheckResults struct { Nfs string `table:"nfs client"` Ceph string `table:"ceph client"` Glusterfs string `table:"glusterfs client"` - Date string `table:"date"` + Time string `table:"time"` } var ( @@ -50,9 +50,9 @@ func precheck(mgr *manager.Manager, node *kubekeyapi.HostCfg, conn ssh.Connectio } output, err := mgr.Runner.RunCmd("date +\"%Z %H:%M:%S\"") if err != nil { - results["date"] = "" + results["time"] = "" } else { - results["date"] = strings.TrimSpace(output) + results["time"] = strings.TrimSpace(output) } checkResults[node.Name] = results