From 7b77f39083c7c4af6b31e561a0eda05ebbe91745 Mon Sep 17 00:00:00 2001 From: Aaron Meihm Date: Thu, 17 Sep 2015 22:23:46 -0500 Subject: [PATCH] [minor] don't treat a missing entity.cfg as fatal This can occur if a job directory is created but the entity configuration has not yet been written. --- mig-runner/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mig-runner/main.go b/mig-runner/main.go index 219651ad..d1c013b8 100644 --- a/mig-runner/main.go +++ b/mig-runner/main.go @@ -38,7 +38,10 @@ func procDir(dirpath string) (err error) { confpath := path.Join(dirpath, "entity.cfg") finfo, err := os.Stat(confpath) if err != nil { - panic(err) + // Don't treat this as fatal; we will just try to load it again + // next time. + mlog("%v: %v", ename, err) + return nil } var ent *entity