Commit 084ee207 authored by Jérome Perrin's avatar Jérome Perrin Committed by Rafael Monnerat

slapos.recipe.erp5testnode: support empty software-path-list

Since this parameter is a json encoded string, request parameter must be []
parent cb0758fe
......@@ -51,6 +51,7 @@ class Recipe(GenericBaseRecipe):
CONFIG['instance_dict'] = value.getvalue()
software_path_list = json.loads(self.options['software-path-list'])
CONFIG["software_path_list"] = ""
if software_path_list:
CONFIG["software_path_list"] = "[software_list]"
CONFIG["software_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