diff --git a/cloudkitty/common/context.py b/cloudkitty/common/context.py index a3bf4aaa..8999ac1f 100644 --- a/cloudkitty/common/context.py +++ b/cloudkitty/common/context.py @@ -37,13 +37,8 @@ class RequestContext(context.RequestContext): show_deleted=show_deleted, request_id=request_id, resource_uuid=resource_uuid, - overwrite=overwrite) - self.roles = roles or [] - - def to_dict(self): - d = super(RequestContext, self).to_dict() - d['roles'] = self.roles - return d + overwrite=overwrite, + roles=roles) @classmethod def from_dict(cls, values): diff --git a/requirements.txt b/requirements.txt index f3ba9ee3..fb0fcca9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,7 +14,7 @@ PasteDeploy>=1.5.0 # MIT pecan>=1.0.0 # BSD WSME>=0.8 # MIT oslo.config>=3.7.0 # Apache-2.0 -oslo.context>=0.2.0 # Apache-2.0 +oslo.context>=2.2.0 # Apache-2.0 oslo.concurrency>=3.5.0 # Apache-2.0 oslo.db>=4.1.0 # Apache-2.0 oslo.i18n>=2.1.0 # Apache-2.0