def instance_fault_get_by_instance_uuids(context, instance_uuids):
 rows = model_query(context, models.InstanceFault, read_deleted='no').filter(models.InstanceFault.instance_uuid.in_(instance_uuids)).order_by(desc('created_at'), desc('id')).all()
 output = {}
 for instance_uuid in instance_uuids:
  output[instance_uuid] = []
 for row in rows:
  data = dict(row.iteritems())
  output[row['instance_uuid']].append(data)
 return output

def instance_fault_get_by_instance_uuids ( context , instance_uuids ) : rows = model_query ( context , models . InstanceFault , read_deleted = 'no' ) . filter ( models . InstanceFault . instance_uuid . in_ ( instance_uuids ) ) . order_by ( desc ( 'created_at' ) , desc ( 'id' ) ) . all ( ) output = { } for instance_uuid in instance_uuids : output [ instance_uuid ] = [ ] for row in rows : data = dict ( row . iteritems ( ) ) output [ row [ 'instance_uuid' ] ] . append ( data ) return output
get all instance faults for the provided instance_uuids .