@webob.dec.wsgify(RequestClass=wsgi.Request)
    def __call__(self, req):
        if req.params not in 'AWSAccessKeyId':
            raise webob.exc.HTTPBadRequest()
        user_id, _sep, project_id = req.params['AWSAccessKeyId'].partition(':')
        project_id = project_id or user_id
        remote_address = getattr(req, 'remote_address', '127.0.0.1')
        if FLAGS.use_forwarded_for:
            remote_address = req.headers.get('X-Forwarded-For', remote_address)
        ctx = context.RequestContext(user_id,
                                     project_id,
                                     is_admin=True,
                                     remote_address=remote_address)

        req.environ['nova.context'] = ctx
        return self.application
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/api/ec2/__init__.py/NoAuth.__call__/swapped operands of `not in`