Fix name for builder in farm connection

Ensure that the map of builders we create links the
builder name and not the farm name to the image engine
of that node. This was a regression introduced during the
farm conf rework.

Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
This commit is contained in:
Urvashi Mohnani 2024-07-17 22:31:48 -04:00
parent 89432899a7
commit 02c094425f
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ func newFarmWithBuilders(_ context.Context, name string, cons []config.Connectio
defer fmt.Printf("Builder %q ready\n", con.Name)
builderMutex.Lock()
defer builderMutex.Unlock()
farm.builders[name] = engine
farm.builders[con.Name] = engine
return nil
})
}