[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.
This commit is contained in:
Aaron Meihm 2015-09-17 22:23:46 -05:00
Родитель 9d313e3932
Коммит 7b77f39083
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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