mirror of https://github.com/k3s-io/k3s
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
)
pull/5480/head
parent
3b36c7e88b
commit
1930acdb45
|
@ -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 %s", ensured, time.Since(start))
|
||||||
logrus.Infof("Migrated %d node password entries in %d milliseconds, average %d ms", ensured, ms, ms/ensured)
|
|
||||||
return os.Remove(passwordFile)
|
return os.Remove(passwordFile)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue