From: Lovett, Trevor Date: Thu, 25 Jul 2019 21:51:37 +0000 (-0500) Subject: [VVP] All http URLs in requirement link X-Git-Tag: 5.0.0~7^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=vvp%2Fvalidation-scripts.git;a=commitdiff_plain;h=70200e06f7858da95dde11abe0bc228042a39f60 [VVP] All http URLs in requirement link Issue-ID: VVP-249 Change-Id: Ibfb8ccf735a8eaa29a6f1b1f6b2fbfd72d562feb Signed-off-by: Lovett, Trevor --- 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: