@staticmethod
def summary(attachment, flat=False):
    """Non detailed view of an attachment."""
    result = {'id': attachment.id, 'status': attachment.attach_status,
        'instance': attachment.instance_uuid, 'volume_id': attachment.volume_id
        }
    if flat:
        return result
    return {'attachment': result}
