Skip to content

Commit

Permalink
Merge pull request #32 from Ruchip16/pylint_fix
Browse files Browse the repository at this point in the history
Fixes pylint `used-before-assignment` error
  • Loading branch information
Ruchip16 authored Aug 8, 2024
2 parents 4b6484c + 9a745a1 commit 79bc105
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/pylint_fix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
trivial:
- Fixes pylint used-before-assignment error in the health_check_view module.
1 change: 1 addition & 0 deletions plugins/filter/health_check_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ def health_check_view(*args, **kwargs):
health_facts = _process_health_facts(health_facts["interfaces"])

health_checks = {}
details = None
if target["name"] == "health_check":
h_vars = target.get("vars")
if h_vars:
Expand Down

0 comments on commit 79bc105

Please sign in to comment.