@pick_context_manager_writer
def instance_fault_create(context, values):
 fault_ref = models.InstanceFault()
 fault_ref.update(values)
 fault_ref.save(context.session)
 return dict(fault_ref)

@ pick_context_manager_writer def instance_fault_create ( context , values ) : fault_ref = models . InstanceFault ( ) fault_ref . update ( values ) fault_ref . save ( context . session ) return dict ( fault_ref )
create a new instancefault .