From: Peter Iannucci Date: Tue, 2 Jul 2013 01:51:47 +0000 (-0400) Subject: Handle new prodconfig schema X-Git-Tag: 0.0.40~1^2 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-xen-config.git/commitdiff_plain/refs/heads/iannucci?ds=sidebyside Handle new prodconfig schema --- diff --git a/debian/changelog b/debian/changelog index 4260ecb..7a6195c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +invirt-xen-config (0.0.38) unstable; urgency=low + + * Treat config.hosts.internal_ips as an array + + -- Peter Iannucci Mon, 01 Jul 2013 21:51:00 -0400 + invirt-xen-config (0.0.37) unstable; urgency=low * Support multiple NICs on HVMs. diff --git a/debian/transform_xend-config.sxp.invirt.mako b/debian/transform_xend-config.sxp.invirt.mako index 90555e7..0ed5816 100755 --- a/debian/transform_xend-config.sxp.invirt.mako +++ b/debian/transform_xend-config.sxp.invirt.mako @@ -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