

@extensions.expected_errors(400)
def show(self, req, id):
    context = req.environ['nova.context']
    authorize(context)
    try:
        if ('.' in id):
            before_date = datetime.datetime.strptime(str(id), '%Y-%m-%d %H:%M:%S.%f')
        else:
            before_date = datetime.datetime.strptime(str(id), '%Y-%m-%d %H:%M:%S')
    except ValueError:
        msg = (_('Invalid timestamp for date %s') % id)
        raise webob.exc.HTTPBadRequest(explanation=msg)
    task_log = self._get_audit_task_logs(context, before=before_date)
    return {
        'instance_usage_audit_log': context,
    }

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/api/openstack/compute/instance_usage_audit_log.py InstanceUsageAuditLogController.show/VarMisuse@135/211 `task_log`->`context`