Commit 61acc0ac authored by Romain Courteaud's avatar Romain Courteaud

List should be loaded as JSON.

parent b019f3c0
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
# #
############################################################################## ##############################################################################
from slapos.recipe.librecipe import GenericBaseRecipe from slapos.recipe.librecipe import GenericBaseRecipe
import json
class Recipe(GenericBaseRecipe): class Recipe(GenericBaseRecipe):
""" """
...@@ -73,7 +74,7 @@ class Recipe(GenericBaseRecipe): ...@@ -73,7 +74,7 @@ class Recipe(GenericBaseRecipe):
server_snippet = "" server_snippet = ""
i = 0 i = 0
name = self.options['name'] name = self.options['name']
for address in self.options['backend-list'].split(): for address in json.loads(self.options['backend-list']):
i += 1 i += 1
server_snippet += self.substituteTemplate( server_snippet += self.substituteTemplate(
snippet_filename, dict( snippet_filename, dict(
......
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