From a17f8caf10a3e19f52f41e45ab3f28d12f460858 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Mon, 29 Nov 2021 11:27:40 -0600 Subject: graphql: T3993: add op-mode requests (cherry picked from commit 1f926e1b1fe7d82113be55916a55ca7e3cceac76) --- src/services/api/graphql/recipes/session.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/services/api/graphql/recipes/session.py') diff --git a/src/services/api/graphql/recipes/session.py b/src/services/api/graphql/recipes/session.py index b96cc1753..c6c3209c0 100644 --- a/src/services/api/graphql/recipes/session.py +++ b/src/services/api/graphql/recipes/session.py @@ -63,3 +63,15 @@ class Session(object): session.commit() except Exception as error: raise error + + def show(self): + session = self._session + data = self._data + out = '' + + try: + out = session.show(data['path']) + except Exception as error: + raise error + + return out -- cgit v1.2.3