Skip to content
Snippets Groups Projects
Commit 6d7f7fce authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Beautify FreeBSD description returned by guestfs

parent c71133ce
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,10 @@ class Freebsd(Unix):
self.meta["USERS"] = " ".join(self._get_passworded_users())
#The original product name key is long and ugly
self.meta['DESCRIPTION'] = \
self.meta['DESCRIPTION'].split('#')[0].strip()
# Delete the USERS metadata if empty
if not len(self.meta['USERS']):
self.out.warn("No passworded users found!")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment