diff options
author | Vijayendra Radhakrishna <vradhakrishna@mvista.com> | 2016-12-07 17:16:05 +0530 |
---|---|---|
committer | Vijayendra Radhakrishna <vradhakrishna@mvista.com> | 2016-12-07 17:45:31 +0530 |
commit | d7d3c67a506c7fcddc60b47d62df933f156c987c (patch) | |
tree | 4322e4c8eb7492ac0bd3278045f5be5644b3c10c /tests/functest/odl-sfc/utils.py | |
parent | 7fddc131f4ed035397adf685df617d0df6cd8bf9 (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/functest/odl-sfc/utils.py')
-rw-r--r-- | tests/functest/odl-sfc/utils.py | 6 |
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): |