From 12837a62134c51b367f1ea8601148cd776637458 Mon Sep 17 00:00:00 2001 From: Stepan Andrushko Date: Mon, 19 Nov 2018 12:18:19 +0200 Subject: Fix value undefined error: "fetch_url_and_verify" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- ansible/library/fetch_url_and_verify.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ansible/library') 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]) -- cgit 1.2.3-korg