1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

Plugin/directive fixes

This commit is contained in:
thatmattlove
2021-09-21 07:54:16 -07:00
parent e62af507ee
commit 7d5d64c0e2
14 changed files with 113 additions and 131 deletions

View File

@@ -5,7 +5,6 @@ import typing as t
from abc import ABC, abstractmethod
# Project
from hyperglass.log import log
from hyperglass.types import Series
from hyperglass.plugins import OutputPluginManager
@@ -41,12 +40,9 @@ class Connection(ABC):
async def response(self, output: Series[str]) -> t.Union["OutputDataModel", str]:
"""Send output through common parsers."""
log.debug("Pre-parsed responses:\n{}", output)
response = self.plugin_manager.execute(output=output, query=self.query_data)
if response is None:
response = ()
log.debug("Post-parsed responses:\n{}", response)
return response