Commit 62aa12fa authored by Bobby Rullo's avatar Bobby Rullo

cmd/dex-overlord: was using the wrong err

parent 081bfdd1
......@@ -80,7 +80,9 @@ func main() {
if *dbMigrate {
var sleep time.Duration
for {
if migrations, err := db.MigrateToLatest(dbc); err == nil {
var err error
var migrations int
if migrations, err = db.MigrateToLatest(dbc); err == nil {
log.Infof("Performed %d db migrations", migrations)
break
}
......
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