Skip to content

Commit

Permalink
fix(inputs.openstack): Resolve regression in block storage and server…
Browse files Browse the repository at this point in the history
… info (#14977)
  • Loading branch information
powersj authored Mar 14, 2024
1 parent 288fb06 commit 6fa5a9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/inputs/openstack/openstack.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ func (o *OpenStack) Start(_ telegraf.Accumulator) error {
if err != nil {
return fmt.Errorf("unable to create V3 volume client: %w", err)
}
hasBlockStorage = true
}
}

Expand Down Expand Up @@ -786,7 +787,7 @@ func (o *OpenStack) gatherServers(acc telegraf.Accumulator) error {
return fmt.Errorf("unable to extract servers: %w", err)
}
for _, server := range extractedServers {
if o.services["server"] {
if o.services["servers"] {
o.accumulateServer(acc, server, hypervisor.HypervisorHostname)
}
if o.ServerDiagnotics && server.Status == "ACTIVE" {
Expand Down

0 comments on commit 6fa5a9b

Please sign in to comment.