Skip to content

Commit ed2d88e

Browse files
fix: return error from info.Metadata in FleetGateway execute (#7629) (#7656)
(cherry picked from commit 856f285) Co-authored-by: Panos Koutsovasilis <[email protected]>
1 parent 103efc8 commit ed2d88e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
kind: bug-fix
2+
summary: Fix panic during shutdown in fleetgateway
3+
component: elastic-agent
4+
pr: https://github.com/elastic/elastic-agent/pull/7629
5+
issue: https://github.com/elastic/elastic-agent/issues/7309

internal/pkg/agent/application/gateway/fleet/fleet_gateway.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ func (f *FleetGateway) execute(ctx context.Context) (*fleetapi.CheckinResponse,
334334
ecsMeta, err := info.Metadata(ctx, f.log)
335335
if err != nil {
336336
f.log.Error(errors.New("failed to load metadata", err))
337+
return nil, 0, err
337338
}
338339

339340
// retrieve ack token from the store

0 commit comments

Comments
 (0)