mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-09 03:19:39 +00:00
Don't print password conversion rate
Avoids divide-by-zero when the password file is empty
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 0bf7c09569)
This commit is contained in:
committed by
Brad Davidson
parent
70df1cc324
commit
059710df4e
@@ -110,7 +110,6 @@ func MigrateFile(secretClient coreclient.SecretClient, nodeClient coreclient.Nod
|
||||
}
|
||||
}
|
||||
}
|
||||
ms := time.Since(start).Milliseconds()
|
||||
logrus.Infof("Migrated %d node password entries in %d milliseconds, average %d ms", ensured, ms, ms/ensured)
|
||||
logrus.Infof("Migrated %d node password entries in %s", ensured, time.Since(start))
|
||||
return os.Remove(passwordFile)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user