From bb4901773df9682b67081dda5baf0cb39c742d1e Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Fri, 7 Oct 2022 09:59:15 -0500 Subject: graphql: T4736: fix import error to correct JSON output --- src/services/api/graphql/session/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/api/graphql/session/session.py b/src/services/api/graphql/session/session.py index 93e1c328e..f7510841e 100644 --- a/src/services/api/graphql/session/session.py +++ b/src/services/api/graphql/session/session.py @@ -87,7 +87,7 @@ class Session: try: out = session.show_config(data['path']) if data.get('config_format', '') == 'json': - config_tree = vyos.configtree.ConfigTree(out) + config_tree = ConfigTree(out) out = json.loads(config_tree.to_json()) except Exception as error: raise error -- cgit v1.2.3