Handle new prodconfig schema
[invirt/packages/invirt-xen-config.git] / debian / transform_xend-config.sxp.invirt.mako
index 400f3ea..0ed5816 100755 (executable)
@@ -8,7 +8,7 @@ internal_ip = None
 # This hack is necessary because cfg.hosts is an array rather than a dict.
 for host in cfg.hosts:
   if host.hostname == fqdn:
-    internal_ip = host.internal_ip
+    internal_ip = host.internal_ips[0]
     break
 
 class xend_template_exception(Exception): pass
@@ -19,5 +19,5 @@ EOF
 
 s/^\#?\(xend-relocation-address ''\)/(xend-relocation-address '\${internal_ip}')/m or die;
 s/^\(xend-relocation-hosts-allow '[^']*'\)/(xend-relocation-hosts-allow '')/m or die;
-s/^\(dom0-min-mem [0-9]*\)/(dom0-min-mem 3072)/m or die;
+s/^\(dom0-min-mem [0-9]*\)/(dom0-min-mem 1536)/m or die;
 print;