diff options
author | Dolph Mathews <dolph.mathews@gmail.com> | 2013-03-08 10:45:43 -0600 |
---|---|---|
committer | Dolph Mathews <dolph.mathews@gmail.com> | 2013-03-12 10:20:50 -0500 |
commit | d2635d5e26aafde9409f58a3530220c4184d5757 (patch) | |
tree | 549f75ee0e83e3b4b954c70fcd5f2271685c0cc1 /keystone/catalog | |
parent | dd7d4fd551f727873462d3ef2ece863ab6400995 (diff) | |
download | keystone-d2635d5e26aafde9409f58a3530220c4184d5757.tar.gz keystone-d2635d5e26aafde9409f58a3530220c4184d5757.tar.xz keystone-d2635d5e26aafde9409f58a3530220c4184d5757.zip |
Filter out legacy_endpoint_id (bug 1152635)
Change-Id: I176c3f4fec0a1fa544efb11cffd4837dedf8cace
Diffstat (limited to 'keystone/catalog')
-rw-r--r-- | keystone/catalog/controllers.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/keystone/catalog/controllers.py b/keystone/catalog/controllers.py index 24482fe7..c4c13a7e 100644 --- a/keystone/catalog/controllers.py +++ b/keystone/catalog/controllers.py @@ -158,6 +158,17 @@ class EndpointV3(controller.V3Controller): collection_name = 'endpoints' member_name = 'endpoint' + @classmethod + def filter_endpoint(cls, ref): + if 'legacy_endpoint_id' in ref: + ref.pop('legacy_endpoint_id') + return ref + + @classmethod + def wrap_member(cls, context, ref): + ref = cls.filter_endpoint(ref) + return super(EndpointV3, cls).wrap_member(context, ref) + @controller.protected def create_endpoint(self, context, endpoint): ref = self._assign_unique_id(self._normalize_dict(endpoint)) |