From 4480a3361ff4c43fb15fbf0302036d8582e5c061 Mon Sep 17 00:00:00 2001 From: Shailaja Date: Fri, 5 Jul 2024 19:34:12 +0530 Subject: [PATCH] refractor --- agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent.py b/agent.py index 37ded8b..6fe3963 100644 --- a/agent.py +++ b/agent.py @@ -274,9 +274,9 @@ class ServerData: return 1 if 'ID' in os_info and 'VERSION_ID' in os_info: - current_os = f"{os_info.get('NAME', 'Unknown')} {os_info.get('VERSION', '').strip()}".strip() + current_os = (os_info.get('ID', 'Unknown') + " " + os_info.get('VERSION_ID', '').strip()).strip() else: - current_os = f"{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():