1 # Thierry Parmentelat <thierry.parmentelat@inria.fr>
2 # Copyright (C) 2010 INRIA
4 # remove slice_spec['omf-friendly']
6 # this is for testing the system with a broken OMF-friendly feature
7 # as it happens the lxc builds can't build rvm
8 # in a first step I had created a no_omf branch but that was definitely a wrong idea
10 def remove_omf (plc_spec):
11 for slice in plc_spec['slices']:
12 if 'omf-friendly' in slice:
13 print 'Turning off omf-friendly in slice',slice['slice_fields']['name']
14 del slice['omf-friendly']
17 def config (plc_specs, options):
18 return [ remove_omf(plc) for plc in plc_specs ]