projects
/
snf-image-creator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c71133c
)
Beautify FreeBSD description returned by guestfs
author
Nikos Skalkotos
<skalkoto@grnet.gr>
Tue, 21 May 2013 13:05:53 +0000
(16:05 +0300)
committer
Nikos Skalkotos
<skalkoto@grnet.gr>
Tue, 21 May 2013 14:06:20 +0000
(17:06 +0300)
image_creator/os_type/freebsd.py
patch
|
blob
|
history
diff --git
a/image_creator/os_type/freebsd.py
b/image_creator/os_type/freebsd.py
index
b4eef28
..
a9f8fa8
100644
(file)
--- a/
image_creator/os_type/freebsd.py
+++ b/
image_creator/os_type/freebsd.py
@@
-43,6
+43,10
@@
class Freebsd(Unix):
self.meta["USERS"] = " ".join(self._get_passworded_users())
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!")
# Delete the USERS metadata if empty
if not len(self.meta['USERS']):
self.out.warn("No passworded users found!")