Commit 06ec72b0 authored by Antoine Catton's avatar Antoine Catton

Add json serialisation on non string parameter in softwaretype

This is usefull for slave_partition_list
parent 8a962ea3
......@@ -29,6 +29,7 @@ import os
import sys
import copy
from ConfigParser import ConfigParser
import json
import subprocess
import slapos.slap
import netaddr
......@@ -99,7 +100,10 @@ class Recipe:
buildout.add_section('slap-parameter')
for parameter, value in self.parameter_dict.items():
buildout.set('slap-parameter', parameter, value)
if isinstance(value, str):
buildout.set('slap-parameter', parameter, value)
else:
buildout.set('slap-parameter', parameter, json.dumps(value))
buildout.add_section('slap-network-information')
buildout.set('slap-network-information', 'local-ipv4',
......
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