From: Thierry Parmentelat Date: Mon, 2 Mar 2015 11:49:10 +0000 (+0100) Subject: a new config that tweaks the config and removes initscript-related annotations X-Git-Tag: tests-5.3-10~25 X-Git-Url: http://git.onelab.eu/?p=tests.git;a=commitdiff_plain;h=de16a36abe84893ec1e81c7c876b9eed1fa844c8 a new config that tweaks the config and removes initscript-related annotations --- diff --git a/system/config_no_initscript.py b/system/config_no_initscript.py new file mode 100644 index 0000000..206d698 --- /dev/null +++ b/system/config_no_initscript.py @@ -0,0 +1,14 @@ +# Thierry Parmentelat +# Copyright (C) 2012 INRIA +# +# allow one hour for the node to install + +def config (plc_specs, options): + def remove_initscripts (plc_spec): + slice_specs = plc_spec['slices'] + for slice_spec in slice_specs: + for key in ['initscriptcode', 'initscriptname', 'initscriptstamp']: + if key in slice_spec: + del slice_spec[key] + return plc_spec + return [remove_initscripts (plc_spec) for plc_spec in plc_specs ]