diff options
author | Stepan Andrushko <stepanx.andrushko@intel.com> | 2018-11-19 12:18:19 +0200 |
---|---|---|
committer | Emma Foley <emma.l.foley@intel.com> | 2018-12-07 15:35:56 +0000 |
commit | 12837a62134c51b367f1ea8601148cd776637458 (patch) | |
tree | 14e0df6e3910620718e1033a631d09fcc7edb6ec /ansible/library/fetch_url_and_verify.py | |
parent | 2f2fb869fc5cc03d6c34fdc4aac0936a44899235 (diff) |
Fix value undefined error: "fetch_url_and_verify"
Fix value undefined error in Yardstick internal ansible module
“fetch_url_and_verify” in case http unreachable.
JIRA: YARDSTICK-1527
Change-Id: Iea3c6c08291b74f6a4dbb715b00cbf14a5dcf00e
Signed-off-by: Stepan Andrushko <stepanx.andrushko@intel.com>
Diffstat (limited to 'ansible/library/fetch_url_and_verify.py')
-rw-r--r-- | ansible/library/fetch_url_and_verify.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ansible/library/fetch_url_and_verify.py b/ansible/library/fetch_url_and_verify.py index 77ff916cc..13e8608b2 100644 --- a/ansible/library/fetch_url_and_verify.py +++ b/ansible/library/fetch_url_and_verify.py @@ -44,6 +44,7 @@ def main(): dest = params['dest'] sha256url = params['sha256url'] retries = params['retries'] + sha256line = '' image_dir, image_filename = os.path.split(dest) rc, stdout, stderr = module.run_command(['curl', '-sS', sha256url]) |