diff options
author | Tibor Frank <tifrank@cisco.com> | 2018-05-14 09:00:52 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2018-05-14 09:00:52 +0200 |
commit | bd18bd034ac9b6d3e50eea6a489d9ea0c3252c58 (patch) | |
tree | e72e2c572345479777dcb087e546509cc8e68b5c | |
parent | 5646509aea6b43ef1efb282aad908289cc005b26 (diff) |
CSIT-1078: Optimize input data files download and processing
Change-Id: I3fa3c09bc485416e6d2be02fac296d83da16e0d7
Signed-off-by: Tibor Frank <tifrank@cisco.com>
-rw-r--r-- | resources/tools/presentation/input_data_files.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/tools/presentation/input_data_files.py b/resources/tools/presentation/input_data_files.py index 24dc3a57d8..9e0cfa6931 100644 --- a/resources/tools/presentation/input_data_files.py +++ b/resources/tools/presentation/input_data_files.py @@ -207,8 +207,8 @@ def download_and_unzip_data_file(spec, job, build): execute_command("gzip --keep {0}".format(new_name[:-3])) spec.set_input_file_name(job, build["build"], new_name[:-3]) - if spec.input["file-name"].endswith(".zip"): - if is_zipfile(file_name): + if new_name.endswith(".zip"): + if is_zipfile(new_name): return _unzip_file(spec, job, build) else: return False |