Skip to content

Commit a806b1d

Browse files
authored
fix(empty_string): #294
1 parent bc91f35 commit a806b1d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ repos:
1616
stages: [commit]
1717
- id: detect-aws-credentials
1818
stages: [commit]
19+
args:
20+
- --allow-missing-credentials
1921
# Generic file state
2022
- id: trailing-whitespace
2123
stages: [commit]
@@ -45,6 +47,7 @@ repos:
4547
- id: dockerfilelint
4648
stages: [commit]
4749
- repo: https://github.com/mattlqx/pre-commit-sign
48-
rev: v1.1.1
50+
rev: v1.1.3
4951
hooks:
5052
- id: sign-commit
53+
stages: [commit-msg]

vmware_exporter/vmware_exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ def vm_labels(self):
10941094

10951095
if 'summary.config.vmPathName' in row:
10961096
p = row['summary.config.vmPathName']
1097-
if p[0] == '[':
1097+
if p.startswith('['):
10981098
p = p[1:p.find("]")]
10991099
else:
11001100
p = 'n/a'

0 commit comments

Comments
 (0)