Skip to content

Commit

Permalink
[Agent] Fix ACK to fleet #16994
Browse files Browse the repository at this point in the history
[Agent] Fix ACK to fleet #16994
  • Loading branch information
michalpristas authored Mar 13, 2020
1 parent 9325ec4 commit 261eb43
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion x-pack/agent/pkg/agent/application/action_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (a *actionStoreAcker) Ack(ctx context.Context, action fleetapi.Action) erro
}

func (a *actionStoreAcker) Commit(ctx context.Context) error {
return nil
return a.acker.Commit(ctx)
}

func newActionStoreAcker(acker fleetAcker, store *actionStore) *actionStoreAcker {
Expand Down
1 change: 0 additions & 1 deletion x-pack/agent/pkg/agent/application/fleet_acker.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func (f *actionAcker) Ack(ctx context.Context, action fleetapi.Action) error {
// checkin
cmd := fleetapi.NewAckCmd(f.agentInfo, f.client)
req := &fleetapi.AckRequest{
AgentID: f.agentInfo.AgentID(),
Actions: []string{
action.ID(),
},
Expand Down
1 change: 0 additions & 1 deletion x-pack/agent/pkg/fleetapi/ack_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const ackPath = "/api/ingest_manager/fleet/agents/%s/acks"
// "action_ids": ["id1"]
// }
type AckRequest struct {
AgentID string `json:"agent_id"`
Actions []string `json:"action_ids"`
}

Expand Down

0 comments on commit 261eb43

Please sign in to comment.