trim trailing whitespace on smartos hostname when it came from dmidecode.

This commit is contained in:
Scott Moser 2013-10-07 12:35:01 -04:00
commit 851d9a6901
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ def dmi_data():
except Exception as e:
util.logexc(LOG, "Failed to get system UUID", e)
return sys_uuid.lower(), sys_type
return (sys_uuid.lower().strip(), sys_type.strip())
# Used to match classes to dependencies