From 5de408da5a287a922d6196c2cc0f4cf5960b7757 Mon Sep 17 00:00:00 2001 From: Solvik Blum Date: Tue, 10 Sep 2019 14:37:14 +0200 Subject: [PATCH] more strip from shitty dmidecode --- netbox_agent/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox_agent/server.py b/netbox_agent/server.py index 6b6c9b1..f47384a 100644 --- a/netbox_agent/server.py +++ b/netbox_agent/server.py @@ -76,7 +76,7 @@ class ServerBase(): """ Return the Chassis Name from dmidecode info """ - return self.system[0]['Product Name'] + return self.system[0]['Product Name'].strip() def get_service_tag(self): """