Skip to content

Commit

Permalink
agent: fix postIntent so it records intents correctly
Browse files Browse the repository at this point in the history
Fixes postIntent logic so it properly records the intent if no error
happened
  • Loading branch information
etungsten committed Jul 13, 2020
1 parent 0527bd9 commit 56f691f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ func (a *Agent) realize(in *intent.Intent) error {

func (a *Agent) postIntent(in *intent.Intent) error {
err := a.poster.Post(in)
if err != nil {
if err == nil {
a.tracker.recordPost(in)
}
return err
Expand Down

0 comments on commit 56f691f

Please sign in to comment.