Skip to content

Commit 80ebc3b

Browse files
committed
client: support additional endpoints for BMC dump
Signed-off-by: Lucas Bremgartner <lucas.bremgartner@futurfusion.io>
1 parent 15566c2 commit 80ebc3b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

internal/client/provisioning_server.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,13 @@ func (c OperationsCenterClient) GetServerBMCLogEntries(ctx context.Context, name
335335
return logEntries, nil
336336
}
337337

338-
func (c OperationsCenterClient) GetServerBMCDump(ctx context.Context, name string, trace bool) (api.BMCDump, error) {
338+
func (c OperationsCenterClient) GetServerBMCDump(ctx context.Context, name string, endpoints []string, trace bool) (api.BMCDump, error) {
339339
query := url.Values{}
340+
341+
for _, endpoint := range endpoints {
342+
query.Add("endpoint", endpoint)
343+
}
344+
340345
if trace {
341346
query.Add("trace", "1")
342347
}

0 commit comments

Comments
 (0)