aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLovett, Trevor <trevor.lovett@att.com>2019-07-25 16:51:37 -0500
committerLovett, Trevor (tl2972) <tl2972@att.com>2019-07-25 16:52:01 -0500
commit70200e06f7858da95dde11abe0bc228042a39f60 (patch)
treee8bb6cd40eed65d100408b342788454ff3085301
parent1b6fda825c327432bd7e55bbf3c7e1abd638a09b (diff)
[VVP] All http URLs in requirement link
Issue-ID: VVP-249 Change-Id: Ibfb8ccf735a8eaa29a6f1b1f6b2fbfd72d562feb Signed-off-by: Lovett, Trevor <trevor.lovett@att.com>
-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: