Make sure instances have unique names.
Make sure we don't return an old docker client.
This commit is contained in:
@@ -58,7 +58,7 @@ func (f *localCachedFactory) GetForSession(sessionId string) (DockerApi, error)
|
||||
}
|
||||
|
||||
func (f *localCachedFactory) GetForInstance(instance *types.Instance) (DockerApi, error) {
|
||||
key := instance.SessionId + instance.IP
|
||||
key := instance.Name
|
||||
|
||||
f.irw.Lock()
|
||||
c, found := f.instanceClients[key]
|
||||
|
||||
Reference in New Issue
Block a user