From 19e3cc0ab11796dc8c932c5d26ca5a3a021a403d Mon Sep 17 00:00:00 2001 From: checktheroads Date: Fri, 29 May 2020 17:50:30 -0700 Subject: [PATCH] fix formatting --- hyperglass/api/models/query.py | 1 + hyperglass/api/models/response.py | 1 - hyperglass/parsing/nos.py | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hyperglass/api/models/query.py b/hyperglass/api/models/query.py index 8ada1bf..c7d9ba3 100644 --- a/hyperglass/api/models/query.py +++ b/hyperglass/api/models/query.py @@ -123,6 +123,7 @@ class Query(BaseModel): @property def device(self): + """Get this query's device object by query_location.""" return getattr(devices, self.query_location) def export_dict(self): diff --git a/hyperglass/api/models/response.py b/hyperglass/api/models/response.py index d285f09..92721e8 100644 --- a/hyperglass/api/models/response.py +++ b/hyperglass/api/models/response.py @@ -93,7 +93,6 @@ class QueryResponse(BaseModel): "example": "2020-04-18 14:45:37", }, "format": { - # "alias": "format", "title": "Format", "description": "Response [MIME Type](http://www.iana.org/assignments/media-types/media-types.xhtml). Supported values: `text/plain` and `application/json`.", "example": "text/plain", diff --git a/hyperglass/parsing/nos.py b/hyperglass/parsing/nos.py index b23db2f..d8382c8 100644 --- a/hyperglass/parsing/nos.py +++ b/hyperglass/parsing/nos.py @@ -1,3 +1,5 @@ +"""Map NOS and Commands to Parsing Functions.""" + # Project from hyperglass.parsing.juniper import parse_juniper