Use public ipv4 as bind address if defined.

parent a10f20f3
...@@ -26,9 +26,17 @@ ...@@ -26,9 +26,17 @@
############################################################################## ##############################################################################
import operator import operator
from slapos.recipe.librecipe import GenericSlapRecipe from slapos.recipe.librecipe import GenericSlapRecipe
import traceback
import zc.buildout import zc.buildout
class Recipe(GenericSlapRecipe): class Recipe(GenericSlapRecipe):
def __init__(self, buildout, name, options):
# If public ipv4 is defined: use it as bind address
if options['public-ipv4']:
options['ipv4'] = options['public-ipv4']
GenericSlapRecipe.__init__(self, buildout, name, options)
def _install(self): def _install(self):
path_list = [] path_list = []
......
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