We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc91f35 commit a806b1dCopy full SHA for a806b1d
.pre-commit-config.yaml
@@ -16,6 +16,8 @@ repos:
16
stages: [commit]
17
- id: detect-aws-credentials
18
19
+ args:
20
+ - --allow-missing-credentials
21
# Generic file state
22
- id: trailing-whitespace
23
@@ -45,6 +47,7 @@ repos:
45
47
- id: dockerfilelint
46
48
49
- repo: https://github.com/mattlqx/pre-commit-sign
- rev: v1.1.1
50
+ rev: v1.1.3
51
hooks:
52
- id: sign-commit
53
+ stages: [commit-msg]
vmware_exporter/vmware_exporter.py
@@ -1094,7 +1094,7 @@ def vm_labels(self):
1094
1095
if 'summary.config.vmPathName' in row:
1096
p = row['summary.config.vmPathName']
1097
- if p[0] == '[':
+ if p.startswith('['):
1098
p = p[1:p.find("]")]
1099
else:
1100
p = 'n/a'
0 commit comments