Instead of using whatever comes out of uname, explicitly strip the hostname down... 0.0.18
authorEvan Broder <broder@mit.edu>
Wed, 26 Nov 2008 06:28:15 +0000 (01:28 -0500)
committerEvan Broder <broder@mit.edu>
Wed, 26 Nov 2008 06:28:15 +0000 (01:28 -0500)
svn path=/trunk/packages/invirt-xen-config/; revision=1786

debian/changelog
debian/transform_xend-config.sxp.invirt.mako

index 943cfb7..f9fec3a 100644 (file)
@@ -1,3 +1,10 @@
+invirt-xen-config (0.0.18) unstable; urgency=low
+
+  * Explicitly grab the short form of the hostname to assemble the backend
+    hostname
+
+ -- Evan Broder <broder@mit.edu>  Wed, 26 Nov 2008 01:27:07 -0500
+
 invirt-xen-config (0.0.17) unstable; urgency=low
 
   * Pin libxen3 to the hardy repository so it doesn't get pulled from
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