Mercurial > gemma
changeset 1001:e2860eff5d03 persistent-import-queue
Wait in PW reset clean up code until config is loaded.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 22 Oct 2018 17:17:43 +0200 |
parents | 14425e35e3c2 |
children | 99d27dc9db5e d789f19877f4 |
files | pkg/controllers/pwreset.go |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/controllers/pwreset.go Mon Oct 22 17:16:02 2018 +0200 +++ b/pkg/controllers/pwreset.go Mon Oct 22 17:17:43 2018 +0200 @@ -18,6 +18,7 @@ "gemma.intevation.de/gemma/pkg/auth" "gemma.intevation.de/gemma/pkg/common" + "gemma.intevation.de/gemma/pkg/config" "gemma.intevation.de/gemma/pkg/misc" "gemma.intevation.de/gemma/pkg/models" ) @@ -103,6 +104,7 @@ } func removeOutdated() { + config.WaitReady() for { time.Sleep(cleanupPause) err := auth.RunAs(