From 40d754b44d95293fc050740e9bf9f8400a76041a Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Sun, 17 Jul 2022 15:38:17 -0500 Subject: graphql: T4413: update 'SystemStatus' query for standardized op-mode Update for T2719: Standardized op mode script structure --- src/services/api/graphql/recipes/queries/system_status.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/services/api/graphql/recipes/queries') diff --git a/src/services/api/graphql/recipes/queries/system_status.py b/src/services/api/graphql/recipes/queries/system_status.py index 4a4d9871c..00c137443 100755 --- a/src/services/api/graphql/recipes/queries/system_status.py +++ b/src/services/api/graphql/recipes/queries/system_status.py @@ -33,13 +33,13 @@ def load_as_module(name: str): return mod def get_system_version() -> dict: - show_version = load_as_module('show_version.py') - return show_version.get_raw_data() + show_version = load_as_module('version.py') + return show_version.show(raw=True, funny=False) def get_system_uptime() -> dict: show_uptime = load_as_module('show_uptime.py') return show_uptime.get_raw_data() def get_system_ram_usage() -> dict: - show_ram = load_as_module('show_ram.py') - return show_ram.get_raw_data() + show_ram = load_as_module('memory.py') + return show_ram.show(raw=True) -- cgit v1.2.3