From dd63146cf1cfc7dba3307c2001f6c1471226f34f Mon Sep 17 00:00:00 2001 From: Dave Chen Date: Mon, 22 Aug 2016 11:09:43 +0800 Subject: [PATCH] Update `href` for keystone extensions Since the API docs have been moved to api-ref, and the docs maintained in keystone-specs repo have been moved to attic. The href attribute that points to old `specs.openstack.org` will not be a valid link, this patch update them to point to the new site. Change-Id: Idc4995509d262c74ce6d49c6c18b6452fae186d6 --- keystone/federation/core.py | 3 +-- keystone/oauth1/core.py | 4 ++-- keystone/revoke/core.py | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/keystone/federation/core.py b/keystone/federation/core.py index 738f575dd5..1c4d73e65e 100644 --- a/keystone/federation/core.py +++ b/keystone/federation/core.py @@ -38,8 +38,7 @@ EXTENSION_DATA = { 'links': [{ 'rel': 'describedby', 'type': 'text/html', - 'href': 'http://specs.openstack.org/openstack/keystone-specs/api/v3/' - 'identity-api-v3-os-federation-ext.html', + 'href': 'http://developer.openstack.org/api-ref-identity-v3-ext.html', }]} extension.register_admin_extension(EXTENSION_DATA['alias'], EXTENSION_DATA) extension.register_public_extension(EXTENSION_DATA['alias'], EXTENSION_DATA) diff --git a/keystone/oauth1/core.py b/keystone/oauth1/core.py index 2f073ac2cf..b138c08f98 100644 --- a/keystone/oauth1/core.py +++ b/keystone/oauth1/core.py @@ -72,8 +72,8 @@ EXTENSION_DATA = { { 'rel': 'describedby', 'type': 'text/html', - 'href': 'http://specs.openstack.org/openstack/keystone-specs/api/' - 'v3/identity-api-v3-os-oauth1-ext.html', + 'href': 'http://developer.openstack.org/' + 'api-ref-identity-v3-ext.html', } ]} extension.register_admin_extension(EXTENSION_DATA['alias'], EXTENSION_DATA) diff --git a/keystone/revoke/core.py b/keystone/revoke/core.py index 5c660c6617..a2da2220dc 100644 --- a/keystone/revoke/core.py +++ b/keystone/revoke/core.py @@ -41,8 +41,8 @@ EXTENSION_DATA = { { 'rel': 'describedby', 'type': 'text/html', - 'href': 'http://specs.openstack.org/openstack/keystone-specs/api/' - 'v3/identity-api-v3-os-revoke-ext.html', + 'href': 'http://developer.openstack.org/' + 'api-ref-identity-v3-ext.html', } ]} extension.register_admin_extension(EXTENSION_DATA['alias'], EXTENSION_DATA)