Commit 405ca3ca authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

Don't print password conversion rate

Avoids divide-by-zero when the password file is empty Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com> (cherry picked from commit 0bf7c095)
parent 594509c7
......@@ -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)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment