From c1d91d21a4e70e4940f2f9e7e1a74d0a7a8f15ee Mon Sep 17 00:00:00 2001 From: yanghuichan Date: Thu, 7 Sep 2017 14:45:02 +0800 Subject: [PATCH] Fix wrong links in horizon Some docs links have changed. We should update the wrong links in our codes. Change-Id: Ia726eaa4d3154a4152d1f685349de98386f42ef0 --- .../static/framework/conf/resource-type-registry.service.js | 2 +- openstack_dashboard/api/microversions.py | 3 ++- openstack_dashboard/api/rest/glance.py | 4 ++-- .../static/app/core/openstack-service-api/glance.service.js | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/horizon/static/framework/conf/resource-type-registry.service.js b/horizon/static/framework/conf/resource-type-registry.service.js index 945d599dfd..ef8985be35 100644 --- a/horizon/static/framework/conf/resource-type-registry.service.js +++ b/horizon/static/framework/conf/resource-type-registry.service.js @@ -39,7 +39,7 @@ * retrieved from a service API. Other types might include Nova servers or * Swift objects. The HEAT type names are listed: * - * http://docs.openstack.org/developer/heat/template_guide/openstack.html + * https://docs.openstack.org/heat/latest/template_guide/openstack.html * * Each resource type is a singleton; to create or retrieve the type use: * diff --git a/openstack_dashboard/api/microversions.py b/openstack_dashboard/api/microversions.py index 64a53c43a5..ab08e37bca 100644 --- a/openstack_dashboard/api/microversions.py +++ b/openstack_dashboard/api/microversions.py @@ -24,7 +24,8 @@ LOG = logging.getLogger(__name__) # entry should be the current service version when the feature was added to # horizon. # Further documentation can be found at -# http://docs.openstack.org/developer/horizon/topics/microversion_support.html +# https://docs.openstack.org/horizon/latest/contributor/topics/ +# microversion_support.html MICROVERSION_FEATURES = { "nova": { "locked_attribute": ["2.9", "2.42"] diff --git a/openstack_dashboard/api/rest/glance.py b/openstack_dashboard/api/rest/glance.py index 6c66b3c1e8..cca4fd8d38 100644 --- a/openstack_dashboard/api/rest/glance.py +++ b/openstack_dashboard/api/rest/glance.py @@ -230,7 +230,7 @@ class Images(generic.View): class MetadefsNamespaces(generic.View): """API for Single Glance Metadata Definitions. - http://docs.openstack.org/developer/glance/metadefs-concepts.html + https://docs.openstack.org/glance/latest/user/metadefs-concepts.html """ url_regex = r'glance/metadefs/namespaces/$' @@ -282,7 +282,7 @@ class MetadefsNamespaces(generic.View): class MetadefsResourceTypesList(generic.View): """API for getting Metadata Definitions Resource Types List. - http://docs.openstack.org/developer/glance/metadefs-concepts.html + https://docs.openstack.org/glance/latest/user/metadefs-concepts.html """ url_regex = r'glance/metadefs/resourcetypes/$' diff --git a/openstack_dashboard/static/app/core/openstack-service-api/glance.service.js b/openstack_dashboard/static/app/core/openstack-service-api/glance.service.js index 7179aa418b..dc869aa285 100644 --- a/openstack_dashboard/static/app/core/openstack-service-api/glance.service.js +++ b/openstack_dashboard/static/app/core/openstack-service-api/glance.service.js @@ -340,7 +340,7 @@ * @description * Get a list of metadata definition namespaces. * - * http://docs.openstack.org/developer/glance/metadefs-concepts.html + * https://docs.openstack.org/glance/latest/user/metadefs-concepts.html * * The listing result is an object with property "items". Each item is * a namespace. @@ -407,7 +407,7 @@ * @description * Get a list of metadata definition resource types. * - * http://docs.openstack.org/developer/glance/metadefs-concepts.html + * https://docs.openstack.org/glance/latest/user/metadefs-concepts.html * * The listing result is an object with property "items". * Each item is a resource type. Resource types are Strings that