Commit 31dcda6b authored by Romain Courteaud's avatar Romain Courteaud

Allow to install in context of erp5testnode

parent d930a84e
...@@ -123,10 +123,14 @@ class Recipe: ...@@ -123,10 +123,14 @@ class Recipe:
buildout.add_section('slap-network-information') buildout.add_section('slap-network-information')
# XXX Hack for beteireflow production # XXX Hack for beteireflow production
buildout.set('slap-network-information', 'local-ipv4', try:
self.getLoopbackIPv4Address()) local_ip = self.getLoopbackIPv4Address()
buildout.set('slap-network-information', 'global-ipv6', global_ip = self.getGlobalIPv4Address()
self.getGlobalIPv4Address()) except AttributeError:
local_ip = self.getLocalIPv4Address()
global_ip = self.getGlobalIPv6Address()
buildout.set('slap-network-information', 'local-ipv4', global_ip)
buildout.set('slap-network-information', 'global-ipv6', global_ip)
# Copy/paste slap_connection # Copy/paste slap_connection
buildout.add_section('slap-connection') buildout.add_section('slap-connection')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment