[VVP] All http URLs in requirement link 57/92057/1
authorLovett, Trevor <trevor.lovett@att.com>
Thu, 25 Jul 2019 21:51:37 +0000 (16:51 -0500)
committerLovett, Trevor (tl2972) <tl2972@att.com>
Thu, 25 Jul 2019 21:52:01 +0000 (16:52 -0500)
Issue-ID: VVP-249

Change-Id: Ibfb8ccf735a8eaa29a6f1b1f6b2fbfd72d562feb
Signed-off-by: Lovett, Trevor <trevor.lovett@att.com>
ice_validator/vvp.py

index 43baee0..8db2d51 100644 (file)
@@ -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: