Skip to content

Commit

Permalink
fix(empty_string): #294
Browse files Browse the repository at this point in the history
  • Loading branch information
thuvh authored Mar 25, 2022
1 parent bc91f35 commit a806b1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ repos:
stages: [commit]
- id: detect-aws-credentials
stages: [commit]
args:
- --allow-missing-credentials
# Generic file state
- id: trailing-whitespace
stages: [commit]
Expand Down Expand Up @@ -45,6 +47,7 @@ repos:
- id: dockerfilelint
stages: [commit]
- repo: https://github.com/mattlqx/pre-commit-sign
rev: v1.1.1
rev: v1.1.3
hooks:
- id: sign-commit
stages: [commit-msg]
2 changes: 1 addition & 1 deletion vmware_exporter/vmware_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ def vm_labels(self):

if 'summary.config.vmPathName' in row:
p = row['summary.config.vmPathName']
if p[0] == '[':
if p.startswith('['):
p = p[1:p.find("]")]
else:
p = 'n/a'
Expand Down

0 comments on commit a806b1d

Please sign in to comment.