From 70200e06f7858da95dde11abe0bc228042a39f60 Mon Sep 17 00:00:00 2001 From: "Lovett, Trevor" Date: Thu, 25 Jul 2019 16:51:37 -0500 Subject: [VVP] All http URLs in requirement link Issue-ID: VVP-249 Change-Id: Ibfb8ccf735a8eaa29a6f1b1f6b2fbfd72d562feb Signed-off-by: Lovett, Trevor --- ice_validator/vvp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ice_validator/vvp.py b/ice_validator/vvp.py index 43baee0..8db2d51 100644 --- a/ice_validator/vvp.py +++ b/ice_validator/vvp.py @@ -425,7 +425,9 @@ class Config: @property def requirement_link_url(self) -> str: path = self._config["ui"].get("requirement-link-url", "") - return "file://{}".format(os.path.join(PATH, path)) + if not path.startswith("http"): + path = "file://{}".format(os.path.join(PATH, path)) + return path @property def terms(self) -> dict: -- cgit 1.2.3-korg