Skip to content

Commit 779ef6c

Browse files
committed
fix: updating config reader features when on disk config changed
1 parent 0928fc0 commit 779ef6c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plugins/config_reader.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ func (r *ConfigReader) updateAgentConfig(payloadAgentConfig *proto.AgentConfig)
107107

108108
sort.Strings(onDiskAgentConfig.Features)
109109
sort.Strings(payloadAgentConfig.Details.Features)
110+
log.Debugf("OnDisk Agent Features %v", onDiskAgentConfig.Features)
111+
log.Debugf("Payload Agent Features %v", onDiskAgentConfig.Features)
110112
r.detailsMu.Unlock()
111113

112114
r.detailsMu.RLock()
@@ -137,6 +139,7 @@ func (r *ConfigReader) updateAgentConfig(payloadAgentConfig *proto.AgentConfig)
137139
log.Errorf("Failed updating Agent config - %v", err)
138140
}
139141
if configUpdated {
142+
r.config.Features = features
140143
log.Debugf("Updated agent config on disk")
141144
}
142145
}

0 commit comments

Comments
 (0)