Instead of using whatever comes out of uname, explicitly strip the hostname down...
[invirt/packages/invirt-xen-config.git] / debian / transform_xend-config.sxp.invirt.mako
index 1a3fa9a..bb31e68 100755 (executable)
@@ -3,7 +3,7 @@ print <<'EOF';
 <%
 from invirt.config import structs as cfg
 import os
-hostname = os.uname()[1]
+hostname = os.uname()[1].split('.')[0]
 %>
 EOF