Fix SEGFAULT issue when buildmgr failed to update package (#635)

This commit is contained in:
Ta-Ching Chen
2018-04-21 23:17:33 +08:00
committed by GitHub
parent 94e2f11ea6
commit 2d359f879a
+1 -1
View File
@@ -88,7 +88,7 @@ func (pkgw *packageWatcher) build(buildCache *cache.Cache, srcpkg *crd.Package)
if err != nil {
e := fmt.Sprintf("Error setting package pending state: %v", err)
log.Println(e)
updatePackage(pkgw.fissionClient, pkg, fission.BuildStatusFailed, e, nil)
updatePackage(pkgw.fissionClient, srcpkg, fission.BuildStatusFailed, e, nil)
return
}