aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVijayendra Radhakrishna <vradhakrishna@mvista.com>2016-12-07 17:16:05 +0530
committerVijayendra Radhakrishna <vradhakrishna@mvista.com>2016-12-07 17:45:31 +0530
commitd7d3c67a506c7fcddc60b47d62df933f156c987c (patch)
tree4322e4c8eb7492ac0bd3278045f5be5644b3c10c /tests
parent7fddc131f4ed035397adf685df617d0df6cd8bf9 (diff)
Unindented return statement in download_image fix
- Add if else for better clarity Change-Id: Iad538139e872635a2af602468f50ceb68cbb93e3 Signed-off-by: Vijayendra Radhakrishna <vradhakrishna@mvista.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/functest/odl-sfc/utils.py6
1 files changed, 2 insertions, 4 deletions
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):