Skip to content
Snippets Groups Projects
Commit cfca8f3f authored by Francois Ancien's avatar Francois Ancien
Browse files

Correcting misunderstanding over content of aggregate-remote.py input file

parent 18887027
No related branches found
No related tags found
No related merge requests found
......@@ -15,13 +15,9 @@ def main(args=None):
parsed = parser.parse_args(args)
data = None
ftp_path = None
with open(parsed.input, "r") as f:
try:
data = json.load(f)
ftp_path = data["FTP_DATA_ADDRESS"]
except json.JSONDecodeError as e:
raise json.JSONDecodeError(f"Impossible to parse data in {parsed.input}. Not a valid json.") from e
lines = f.readlines()
ftp_path = lines[0]
# Getting data from ftp source
ftp_host = "http://ftp-upload-service/api/ftp/upload"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment