- # set initscripts. first check if exists, if not, leave empty.
- is_name = attributes.get('initscript')
- if is_name is not None and is_name in initscripts:
- rec['initscript'] = initscripts[is_name]
+ ### set initscripts; set empty rec['initscript'] if not
+ # if tag 'initscript_code' is set, that's what we use
+ iscode = attributes.get('initscript_code','')
+ if iscode:
+ rec['initscript']=iscode