fix(inputs.openstack): Resolve regression in block storage and server info (#14977)

This commit is contained in:
Joshua Powers 2024-03-14 09:20:15 -06:00 committed by GitHub
parent 288fb06c68
commit 6fa5a9b359
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -203,6 +203,7 @@ func (o *OpenStack) Start(_ telegraf.Accumulator) error {
if err != nil { if err != nil {
return fmt.Errorf("unable to create V3 volume client: %w", err) return fmt.Errorf("unable to create V3 volume client: %w", err)
} }
hasBlockStorage = true
} }
} }
@ -786,7 +787,7 @@ func (o *OpenStack) gatherServers(acc telegraf.Accumulator) error {
return fmt.Errorf("unable to extract servers: %w", err) return fmt.Errorf("unable to extract servers: %w", err)
} }
for _, server := range extractedServers { for _, server := range extractedServers {
if o.services["server"] { if o.services["servers"] {
o.accumulateServer(acc, server, hypervisor.HypervisorHostname) o.accumulateServer(acc, server, hypervisor.HypervisorHostname)
} }
if o.ServerDiagnotics && server.Status == "ACTIVE" { if o.ServerDiagnotics && server.Status == "ACTIVE" {