UNCLASSIFIED

Commit 280b1fb3 authored by ariel.shnitzer's avatar ariel.shnitzer
Browse files

Merge branch 'development' into 'master'

YAML safe load to master

Closes #116 and #97

See merge request !195
parents ad587a67 14e63e8a
Pipeline #64805 passed with stages
in 1 minute and 29 seconds
......@@ -61,7 +61,7 @@ def main():
##### Read download.yaml file
with open(inputFile, "r") as file:
downloads = yaml.load(file, Loader=yaml.FullLoader)
downloads = yaml.safe_load(file)
for type in downloads:
if type == "resources":
......
......@@ -14,7 +14,7 @@ def parse_special_path():
logging.info("download.yaml exists, attempting to extract special image path")
with open("download.yaml", "r") as yf:
try:
data = yaml.load(yf, Loader=yaml.FullLoader)
data = yaml.safe_load(yf)
special_path = data["special-image-path"]
logging.info(f"Discovered special path: {special_path}")
return special_path
......
......@@ -47,7 +47,7 @@ def parse():
logging.info("download.yaml exists, attempting to extract image version")
with open("download.yaml", "r") as yf:
try:
data = yaml.load(yf, Loader=yaml.FullLoader)
data = yaml.safe_load(yf)
v = data["version"]
logging.info(f"Discovered version: {v}")
return v
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment