Skip to content
Snippets Groups Projects
Commit 446a7a56 authored by Sam Roberts's avatar Sam Roberts
Browse files

"fix" failing pep8

parent f3d50084
Branches
Tags
No related merge requests found
......@@ -5,3 +5,5 @@ __pycache__
coverage.xml
.coverage
htmlcov
docs/build
*.log
\ No newline at end of file
......@@ -26,7 +26,7 @@ class InterfaceCheck(sensu.AbstractCheck):
@sensu.AbstractCheck.name.getter
def name(self):
# fix POL1-386 - replace : in interface name with .
# see https://docs.sensu.io/sensu-go/latest/observability-pipeline/observe-schedule/checks/#metadata-attributes
# see https://docs.sensu.io/sensu-go/latest/observability-pipeline/observe-schedule/checks/#metadata-attributes # noqa: E501
ifc_name = self.interface['name'].replace('/', '-').replace(':', '.')
return f'ifc-{self.interface["router"]}-{ifc_name}'
......
[tox]
envlist = py36
[flake8]
exclude = venv,.tox
[testenv]
deps =
coverage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment