- is_id = attr_dict.get('initscript')
- if is_id is not None and is_id in initscripts:
- rec['initscript'] = initscripts[is_id]
+
+ # set initscripts. first check if exists, if not, leave empty.
+ is_name = attr_dict.get('initscript')
+ if is_name is not None and is_name in initscripts:
+ rec['initscript'] = initscripts[is_name]