Merge pull request #3784 from 1uptalent/3783_release_push_lock

FIX #3783: Release the push lock after the image push is completed
This commit is contained in:
Victor Vieux 2014-01-27 13:40:28 -08:00
commit 99dd387fd7
1 changed files with 2 additions and 0 deletions

View File

@ -1643,6 +1643,8 @@ func (srv *Server) ImagePush(job *engine.Job) engine.Status {
job.Error(err)
return engine.StatusErr
}
defer srv.poolRemove("push", localName)
// Resolve the Repository name from fqn to endpoint + name
endpoint, remoteName, err := registry.ResolveRepositoryName(localName)
if err != nil {