From d738713d80b9edf37b3e51d75cb4cc6e1376fdb2 Mon Sep 17 00:00:00 2001 From: Peter Iannucci Date: Mon, 1 Jul 2013 21:51:47 -0400 Subject: [PATCH] Handle new prodconfig schema --- debian/changelog | 6 ++++++ debian/transform_xend-config.sxp.invirt.mako | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 1.7.9.5