aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsteven stark <steven.stark@att.com>2019-07-26 01:37:17 +0000
committerGerrit Code Review <gerrit@onap.org>2019-07-26 01:37:17 +0000
commit14c5243cbbb0652ee9ad99519d7d456f5a6c88f4 (patch)
treee0d65c935e00a96c83f9db254148e9bf0ef97c04
parent219c0e1fb5ebbd37772d18611ea42196c42e17f8 (diff)
parent70200e06f7858da95dde11abe0bc228042a39f60 (diff)
Merge "[VVP] All http URLs in requirement link"
-rw-r--r--ice_validator/vvp.py4
1 files changed, 3 insertions, 1 deletions
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: