summaryrefslogtreecommitdiff
path: root/src/services/api/graphql/session/session.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-11-01 11:21:05 -0500
committerJohn Estabrook <jestabro@vyos.io>2022-11-01 13:47:18 -0500
commitdb0791238c9cccaf73aac61844a6c0293c513a54 (patch)
tree510e4aa14be2ae65eedad0560cb0ee34f45fef21 /src/services/api/graphql/session/session.py
parent702fc62726723136c46e0c116504b4e6ff7d38ca (diff)
downloadvyos-1x-db0791238c9cccaf73aac61844a6c0293c513a54.tar.gz
vyos-1x-db0791238c9cccaf73aac61844a6c0293c513a54.zip
graphql: T4791: decamelize/normalize result of op-mode queries
Diffstat (limited to 'src/services/api/graphql/session/session.py')
-rw-r--r--src/services/api/graphql/session/session.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/services/api/graphql/session/session.py b/src/services/api/graphql/session/session.py
index c2c1db1df..0b77b1433 100644
--- a/src/services/api/graphql/session/session.py
+++ b/src/services/api/graphql/session/session.py
@@ -25,6 +25,7 @@ from vyos.template import render
from vyos.opmode import Error as OpModeError
from api.graphql.libs.op_mode import load_op_mode_as_module, split_compound_op_mode_name
+from api.graphql.libs.op_mode import normalize_output
op_mode_include_file = os.path.join(directories['data'], 'op-mode-standardized.json')
@@ -149,6 +150,8 @@ class Session:
except OpModeError as e:
raise e
+ res = normalize_output(res)
+
return res
def gen_op_mutation(self):