From 31ee586a9b2ee361fb5bec5acf0a8a1d0369e0b9 Mon Sep 17 00:00:00 2001 From: Shailaja Date: Fri, 5 Jul 2024 19:48:05 +0530 Subject: [PATCH] refractor --- agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent.py b/agent.py index 6fe3963..58de2f4 100644 --- a/agent.py +++ b/agent.py @@ -276,7 +276,7 @@ class ServerData: if 'ID' in os_info and 'VERSION_ID' in os_info: current_os = (os_info.get('ID', 'Unknown') + " " + os_info.get('VERSION_ID', '').strip()).strip() else: - current_os = (os_info.get('os_name', 'Unknown') +" " os_info.get('productversion', '').strip()).strip().lower() + current_os = (os_info.get('os_name', 'Unknown') +" "+ os_info.get('productversion', '').strip()).strip().lower() for os_entry in os_list: if current_os in os_entry['name'].lower():