From d7d3c67a506c7fcddc60b47d62df933f156c987c Mon Sep 17 00:00:00 2001 From: Vijayendra Radhakrishna Date: Wed, 7 Dec 2016 17:16:05 +0530 Subject: Unindented return statement in download_image fix - Add if else for better clarity Change-Id: Iad538139e872635a2af602468f50ceb68cbb93e3 Signed-off-by: Vijayendra Radhakrishna --- tests/functest/odl-sfc/utils.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/functest/odl-sfc') diff --git a/tests/functest/odl-sfc/utils.py b/tests/functest/odl-sfc/utils.py index f0b81760..9cbc9ddb 100644 --- a/tests/functest/odl-sfc/utils.py +++ b/tests/functest/odl-sfc/utils.py @@ -114,10 +114,8 @@ def download_image(url, image_path): if not os.path.isfile(image_path): logger.info("Downloading image") ft_utils.download_url(image_url, image_dir) - return None - - logger.info("Using old image") - return + else: + logger.info("Using old image") def setup_neutron(neutron_client, net, subnet, router, subnet_cidr): -- cgit 1.2.3-korg