зеркало из https://github.com/mozilla/mig.git
[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:
Родитель
9d313e3932
Коммит
7b77f39083
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче