From 2fc7dda850ef379945bf0779fefd4c210950bf8e Mon Sep 17 00:00:00 2001
From: Gage Hugo <gagehugo@gmail.com>
Date: Thu, 25 Jan 2018 19:17:49 -0600
Subject: [PATCH] Update docs links

The links for more_info were pointing to the old location for
bandit's documents, which would redirect to an index.html page.

This change updates the docs to the new location in order to
allow the "more info" link to point to the correct page.

Change-Id: I950ea4601248065dce68a5d21b144703817cf675
Closes-Bug: #1745006
---
 bandit/core/docs_utils.py | 2 +-
 bandit/formatters/html.py | 4 ++--
 bandit/formatters/json.py | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/bandit/core/docs_utils.py b/bandit/core/docs_utils.py
index 96ab8848..2db26622 100644
--- a/bandit/core/docs_utils.py
+++ b/bandit/core/docs_utils.py
@@ -15,7 +15,7 @@
 # under the License.
 
 # where our docs are hosted
-BASE_URL = 'https://docs.openstack.org/developer/bandit/'
+BASE_URL = 'https://docs.openstack.org/bandit/latest/'
 
 
 def get_url(bid):
diff --git a/bandit/formatters/html.py b/bandit/formatters/html.py
index 04c289ff..d9211e2e 100644
--- a/bandit/formatters/html.py
+++ b/bandit/formatters/html.py
@@ -125,9 +125,9 @@ This formatter outputs the issues as HTML.
         <b>Confidence: </b>HIGH<br>
         <b>File: </b><a href="examples/yaml_load.py"
         target="_blank">examples/yaml_load.py</a> <br>
-        <b>More info: </b><a href="https://docs.openstack.org/developer/bandit/
+        <b>More info: </b><a href="https://docs.openstack.org/bandit/latest/
         plugins/yaml_load.html" target="_blank">
-        https://docs.openstack.org/developer/bandit/plugins/yaml_load.html</a>
+        https://docs.openstack.org/bandit/latest/plugins/yaml_load.html</a>
         <br>
 
     <div class="code">
diff --git a/bandit/formatters/json.py b/bandit/formatters/json.py
index 03bb08ac..bc522f6b 100644
--- a/bandit/formatters/json.py
+++ b/bandit/formatters/json.py
@@ -65,7 +65,7 @@ This formatter outputs the issues in JSON.
           "line_range": [
             5
           ],
-          "more_info": "https://docs.openstack.org/developer/bandit/",
+          "more_info": "https://docs.openstack.org/bandit/latest/",
           "test_name": "blacklist_calls",
           "test_id": "B301"
         }