Skip to content

Commit

Permalink
vcenterreceiver changes VM template ignore conditions if both attrs a…
Browse files Browse the repository at this point in the history
…re disabled
  • Loading branch information
StefanKurek committed May 3, 2024
1 parent 8d1d799 commit fbe3eb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions receiver/vcenterreceiver/scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,8 @@ func (v *vcenterMetricScraper) collectVMs(
// TODO: Remove after v0.100.0 has been released
// Ignore template resources/metrics for now if not explicitly enabled
if vm.Config.Template &&
(!v.client.cfg.ResourceAttributes.VcenterVMTemplateID.Enabled ||
!v.client.cfg.ResourceAttributes.VcenterVMTemplateName.Enabled) {
!v.client.cfg.ResourceAttributes.VcenterVMTemplateID.Enabled &&
!v.client.cfg.ResourceAttributes.VcenterVMTemplateName.Enabled {
continue
}

Expand Down

0 comments on commit fbe3eb7

Please sign in to comment.