aboutsummaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorStepan Andrushko <stepanx.andrushko@intel.com>2018-11-19 12:18:19 +0200
committerEmma Foley <emma.l.foley@intel.com>2018-12-07 15:35:56 +0000
commit12837a62134c51b367f1ea8601148cd776637458 (patch)
tree14e0df6e3910620718e1033a631d09fcc7edb6ec /ansible
parent2f2fb869fc5cc03d6c34fdc4aac0936a44899235 (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')
-rw-r--r--ansible/library/fetch_url_and_verify.py1
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])