Code Review
/
vvp
/
validation-scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[VVP] All http URLs in requirement link
[vvp/validation-scripts.git]
/
ice_validator
/
vvp.py
diff --git
a/ice_validator/vvp.py
b/ice_validator/vvp.py
index
547a3b4
..
8db2d51
100644
(file)
--- a/
ice_validator/vvp.py
+++ b/
ice_validator/vvp.py
@@
-367,7
+367,7
@@
class Config:
self._config = config
else:
with open(self.DEFAULT_FILENAME, "r") as f:
self._config = config
else:
with open(self.DEFAULT_FILENAME, "r") as f:
- self._config = yaml.load(f)
+ self._config = yaml.
safe_
load(f)
self._user_settings = UserSettings(
self._config["namespace"], self._config["owner"]
)
self._user_settings = UserSettings(
self._config["namespace"], self._config["owner"]
)
@@
-425,7
+425,9
@@
class Config:
@property
def requirement_link_url(self) -> str:
path = self._config["ui"].get("requirement-link-url", "")
@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:
@property
def terms(self) -> dict: