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

add comment to briefly explain why the ':' is being substituted

parent c647244f
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@ class InterfaceCheck(sensu.AbstractCheck):
@sensu.AbstractCheck.name.getter
def name(self):
# fix POL1-386 - replace : in interface name with .
ifc_name = self.interface['name'].replace('/', '-').replace(':', '.')
return f'ifc-{self.interface["router"]}-{ifc_name}'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment