Skip to content

Commit

Permalink
fix(fix_sensor_lookup): Fixing sensor lookup (pryorda#262)
Browse files Browse the repository at this point in the history
Precommit-Verified: 263357fc3ec96d6fac6b9a37933ce5368409972b04f207bd1c0184d0fc0d741c
  • Loading branch information
pryorda authored Mar 30, 2021
1 parent 7fd2824 commit e97c855
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ repos:
- id: flake8
stages: [commit]
args:
- --ignore=F705,E123
- --ignore=F705,E123,E402
- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
rev: v0.1.0
hooks:
Expand Down
2 changes: 1 addition & 1 deletion vmware_exporter/vmware_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1702,7 +1702,7 @@ def _vmware_get_hosts(self, host_metrics):
'yellow': 1,
'green': 2,
'unknown': 3,
}[sensor['sensorStatus']]
}[sensor['sensorStatus'].lower()]

host_metrics['vmware_host_sensor_state'].add_metric(
labels + [sensor['name'], sensor['type']],
Expand Down

0 comments on commit e97c855

Please sign in to comment.