Skip to content

Commit 2a9a842

Browse files
committed
fix agent options
1 parent 02d0228 commit 2a9a842

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

agent/api.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ func (a *agent) apiHandler() (http.Handler, func() error) {
5050
)
5151
}
5252

53+
// Append after to allow the agent options to override the default options.
54+
containerAPIOpts = append(containerAPIOpts, a.containerAPIOptions...)
55+
5356
containerAPI = agentcontainers.NewAPI(a.logger.Named("containers"), containerAPIOpts...)
5457

5558
r.Mount("/api/v0/containers", containerAPI.Routes())

0 commit comments

Comments
 (0)