diff options
author | John Estabrook <jestabro@vyos.io> | 2023-01-23 12:12:43 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2023-01-23 12:13:39 -0600 |
commit | 90bd28bd9c487d4f2e4e8555dccc0b1e89886ab0 (patch) | |
tree | 35ad2e023e5d956e72f776e7998866a989321c43 /src/services/api/graphql/generate | |
parent | 36adc975316b8511c53c813b7542196e3d2779a8 (diff) | |
download | vyos-1x-90bd28bd9c487d4f2e4e8555dccc0b1e89886ab0.tar.gz vyos-1x-90bd28bd9c487d4f2e4e8555dccc0b1e89886ab0.zip |
graphql: T4544: use opmode._is_op_mode_function_name instead of local copy
Diffstat (limited to 'src/services/api/graphql/generate')
-rwxr-xr-x | src/services/api/graphql/generate/schema_from_op_mode.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/services/api/graphql/generate/schema_from_op_mode.py b/src/services/api/graphql/generate/schema_from_op_mode.py index fc63b0100..b320a529e 100755 --- a/src/services/api/graphql/generate/schema_from_op_mode.py +++ b/src/services/api/graphql/generate/schema_from_op_mode.py @@ -25,16 +25,17 @@ from inspect import signature, getmembers, isfunction, isclass, getmro from jinja2 import Template from vyos.defaults import directories +from vyos.opmode import _is_op_mode_function_name as is_op_mode_function_name from vyos.util import load_as_module if __package__ is None or __package__ == '': sys.path.append("/usr/libexec/vyos/services/api") - from graphql.libs.op_mode import is_op_mode_function_name, is_show_function_name + from graphql.libs.op_mode import is_show_function_name from graphql.libs.op_mode import snake_to_pascal_case, map_type_name from vyos.config import Config from vyos.configdict import dict_merge from vyos.xml import defaults else: - from .. libs.op_mode import is_op_mode_function_name, is_show_function_name + from .. libs.op_mode import is_show_function_name from .. libs.op_mode import snake_to_pascal_case, map_type_name from .. import state |