From ec411ebf8e4c876fee18900e9222eeb464e7488f Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Tue, 20 May 2014 19:59:02 +0200 Subject: [PATCH] Fix for building identity-api Patch https://review.openstack.org/#/c/94194/ changes the location of the v3 API, handle the new directory. Change-Id: Iadadec17d525acede71853c00ec4f075c75c0a05 --- README.rst | 2 +- os_doc_tools/doctest.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 125fef06..82a14912 100644 --- a/README.rst +++ b/README.rst @@ -104,7 +104,7 @@ Release notes subcommand xml output. * ``openstack-doc-tools``: Warn about non-breaking space, enhance -v output, special case building of localized high-availability - guide. + guide, fix for building changed identity-api repository. * New command ``openstack-jsoncheck`` to check for niceness of JSON files and reformat them. * ``openstack-autohelp``: Update the default parameters. The tables diff --git a/os_doc_tools/doctest.py b/os_doc_tools/doctest.py index af4d3e26..ca6c06de 100755 --- a/os_doc_tools/doctest.py +++ b/os_doc_tools/doctest.py @@ -810,8 +810,8 @@ def build_book(book, publish_path, log_path): stderr=subprocess.STDOUT ) # Repository: identity-api - # Let's not check for "v3" but for the full name instead - elif book.endswith("openstack-identity-api/v3"): + elif (cfg.CONF.repo_name == "identity-api" + and book.endswith("v3")): output = subprocess.check_output( ["bash", os.path.join(SCRIPTS_DIR, "markdown-docbook.sh"), "identity-api-v3"],