From cdfcac6e67e8b9c97fa5948ee3a8b8e427224985 Mon Sep 17 00:00:00 2001 From: jolie Date: Thu, 7 Sep 2017 15:01:01 +0800 Subject: [PATCH] Update links in keystone Some links have been changed. This patch updates links in docs and codes. Change-Id: Ia104a6ec890e1af4bc44c96a38a4b055ebb99e26 --- HACKING.rst | 2 +- devstack/plugin.sh | 2 +- keystone/cmd/cli.py | 4 ++-- keystone/i18n.py | 2 +- keystone/tests/unit/test_sql_banned_operations.py | 2 +- keystone/tests/unit/test_sql_upgrade.py | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/HACKING.rst b/HACKING.rst index 40dc1142e1..2ed89448ab 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -2,7 +2,7 @@ Keystone Style Commandments =========================== - Step 1: Read the OpenStack Style Commandments - https://docs.openstack.org/developer/hacking/ + https://docs.openstack.org/hacking/latest/ - Step 2: Read on Keystone Specific Commandments diff --git a/devstack/plugin.sh b/devstack/plugin.sh index d8696235ec..924b820b36 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -18,7 +18,7 @@ source $KEYSTONE_PLUGIN/lib/federation.sh # For more information on Devstack plugins, including a more detailed # explanation on when the different steps are executed please see: -# https://docs.openstack.org/developer/devstack/plugins.html +# https://docs.openstack.org/devstack/latest/plugins.html if [[ "$1" == "stack" && "$2" == "install" ]]; then # This phase is executed after the projects have been installed diff --git a/keystone/cmd/cli.py b/keystone/cmd/cli.py index a75d91be5a..cce763cc75 100644 --- a/keystone/cmd/cli.py +++ b/keystone/cmd/cli.py @@ -481,8 +481,8 @@ class DbSync(BaseApp): if (contract_version > migrate_version or migrate_version > expand_version): LOG.info('Your database is out of sync. For more information ' - 'refer to https://docs.openstack.org/developer/' - 'keystone/upgrading.html') + 'refer to https://docs.openstack.org/keystone/' + 'latest/admin/identity-upgrading.html') status = 1 elif migration_script_version > expand_version: LOG.info('Your database is not up to date. Your first step is ' diff --git a/keystone/i18n.py b/keystone/i18n.py index 4ff6b69057..5654f45200 100644 --- a/keystone/i18n.py +++ b/keystone/i18n.py @@ -14,7 +14,7 @@ """oslo.i18n integration module. -See https://docs.openstack.org/developer/oslo.i18n/usage.html . +See https://docs.openstack.org/oslo.i18n/latest/user/usage.html . """ diff --git a/keystone/tests/unit/test_sql_banned_operations.py b/keystone/tests/unit/test_sql_banned_operations.py index c7c9420cee..2970dfaf79 100644 --- a/keystone/tests/unit/test_sql_banned_operations.py +++ b/keystone/tests/unit/test_sql_banned_operations.py @@ -181,7 +181,7 @@ class KeystoneMigrationsCheckers(test_migrations.WalkVersionsMixin): # constraint. # # Please follow the guidelines outlined at: - # https://docs.openstack.org/developer/keystone/devref/development_best_practices.html#database-migrations + # https://docs.openstack.org/keystone/latest/contributor/database-migrations.html if version >= self.first_version and version not in self.exceptions: banned_ops = self.banned_ops diff --git a/keystone/tests/unit/test_sql_upgrade.py b/keystone/tests/unit/test_sql_upgrade.py index 9176c821e7..e223e98e7f 100644 --- a/keystone/tests/unit/test_sql_upgrade.py +++ b/keystone/tests/unit/test_sql_upgrade.py @@ -1616,7 +1616,7 @@ class VersionTests(SqlMigrateBase): For more information, see "Database Migrations" here: - https://docs.openstack.org/developer/keystone/devref/development_best_practices.html#database-migrations + https://docs.openstack.org/keystone/latest/contributor/database-migrations.html """ # Note to reviewers: this version number should never change. @@ -1639,7 +1639,7 @@ class VersionTests(SqlMigrateBase): For more information, see "Database Migrations" here: - https://docs.openstack.org/developer/keystone/devref/development_best_practices.html#database-migrations + https://docs.openstack.org/keystone/latest/contributor/database-migrations.html """ # Transitive comparison: expand == data migration == contract