Skip to content

Commit

Permalink
Fix collect_events default (#9979)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianVeaux authored and ChristineTChen committed Aug 25, 2021
1 parent 25fec98 commit 04a0823
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vsphere/datadog_checks/vsphere/config_models/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ def initialize_instance(values, **kwargs):
values['collect_events'] = True
elif collection_type == 'historical':
values['collect_events'] = False
elif values.get('collect_events_only', False):

if values.get('collect_events_only', False):
values['collect_events'] = True

return values

0 comments on commit 04a0823

Please sign in to comment.