Mark the trust kvs backend deprecated, for removal in Kilo

Although the kvs.Base was marked as deprecated, the individual
backends were not.  This marks the kvs trust backend.

Partially-implements: bp deprecated-as-of-juno

Change-Id: I8b9b08ff7eefa6ad00db791c7077ddca5853ac6b
This commit is contained in:
Henry Nash 2014-08-29 15:39:16 +01:00
parent e0d83776bd
commit c1b7130bcf
1 changed files with 9 additions and 0 deletions

View File

@ -21,6 +21,7 @@ from oslo.utils import timeutils
from keystone.common import kvs
from keystone import exception
from keystone.openstack.common import versionutils
from keystone import trust as keystone_trust
@ -40,6 +41,14 @@ def _filter_trust(ref, deleted=False):
class Trust(kvs.Base, keystone_trust.Driver):
@versionutils.deprecated(versionutils.deprecated.JUNO,
in_favor_of='keystone.trust.backends.sql',
remove_in=+1,
what='keystone.trust.backends.kvs')
def __init__(self):
super(Trust, self).__init__()
def create_trust(self, trust_id, trust, roles):
trust_ref = copy.deepcopy(trust)
trust_ref['id'] = trust_id