Skip to content

Commit

Permalink
fix(agent): 🐛 correct check on MQTT enabled for resetting agent
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed Sep 6, 2024
1 parent 83e7c59 commit 8d57930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func (agent *Agent) Stop() {

// Reset will remove any agent related files and configuration.
func (agent *Agent) Reset(ctx context.Context) error {
if !agent.prefs.MQTT.IsMQTTEnabled() {
if agent.prefs.MQTT.IsMQTTEnabled() {
if err := agent.resetMQTTControllers(ctx); err != nil {
agent.logger.Warn("Problems occurred resetting MQTT configuration.", slog.Any("error", err))
}
Expand Down

0 comments on commit 8d57930

Please sign in to comment.