Skip to content

Commit e97c855

Browse files
authored
fix(fix_sensor_lookup): Fixing sensor lookup (#262)
Precommit-Verified: 263357fc3ec96d6fac6b9a37933ce5368409972b04f207bd1c0184d0fc0d741c
1 parent 7fd2824 commit e97c855

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ repos:
3434
- id: flake8
3535
stages: [commit]
3636
args:
37-
- --ignore=F705,E123
37+
- --ignore=F705,E123,E402
3838
- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
3939
rev: v0.1.0
4040
hooks:

vmware_exporter/vmware_exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1702,7 +1702,7 @@ def _vmware_get_hosts(self, host_metrics):
17021702
'yellow': 1,
17031703
'green': 2,
17041704
'unknown': 3,
1705-
}[sensor['sensorStatus']]
1705+
}[sensor['sensorStatus'].lower()]
17061706

17071707
host_metrics['vmware_host_sensor_state'].add_metric(
17081708
labels + [sensor['name'], sensor['type']],

0 commit comments

Comments
 (0)