keep track of what has moved to py3
[tests.git] / system / config_no_initscript.py
1 # -*- python3 -*-
2 # Thierry Parmentelat <thierry.parmentelat@inria.fr>
3 # Copyright (C) 2015 INRIA 
4 #
5 # allow one hour for the node to install
6
7 def config (plc_specs, options):
8     def remove_initscripts (plc_spec):
9         slice_specs = plc_spec['slices']
10         for slice_spec in slice_specs:
11             for key in ['initscriptcode', 'initscriptname', 'initscriptstamp']:
12                 if key in slice_spec:
13                     del slice_spec[key]
14         return plc_spec
15     return [remove_initscripts (plc_spec) for plc_spec in plc_specs ]