def get_primitive_instance_by_uuid(context, instance_uuid):
 instance = db.instance_get_by_uuid(context, instance_uuid)
 return jsonutils.to_primitive(instance)

def get_primitive_instance_by_uuid ( context , instance_uuid ) : instance = db . instance_get_by_uuid ( context , instance_uuid ) return jsonutils . to_primitive ( instance )
helper method to get an instance and then convert it to a primitive form using jsonutils .