From de16a36abe84893ec1e81c7c876b9eed1fa844c8 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 2 Mar 2015 12:49:10 +0100 Subject: [PATCH] a new config that tweaks the config and removes initscript-related annotations --- system/config_no_initscript.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 system/config_no_initscript.py 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 ] -- 2.43.0