projects
/
invirt/packages/invirt-xen-config.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
diff --git
a/debian/transform_xend-config.sxp.invirt.mako
b/debian/transform_xend-config.sxp.invirt.mako
index
1a3fa9a
..
bb31e68
100755
(executable)
--- a/
debian/transform_xend-config.sxp.invirt.mako
+++ b/
debian/transform_xend-config.sxp.invirt.mako
@@
-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