diff options
author | 2016-12-08 12:00:36 +0200 | |
---|---|---|
committer | 2016-12-08 14:56:36 +0000 | |
commit | 7af574e792b1433191b5e470782fd09d4fd5a274 (patch) | |
tree | 9566f3d844344805bbd6932c9d0bf936e265810d /tests/functest/odl-sfc/utils.py | |
parent | d6fffb5364031f16d678040ec43220c965094ee1 (diff) |
Remove needless returns, convert comments to docstrings
Change-Id: I2ad10d68d71b2d29b68e8fb8b90ba633d67d75bc
Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
Diffstat (limited to 'tests/functest/odl-sfc/utils.py')
-rw-r--r-- | tests/functest/odl-sfc/utils.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/functest/odl-sfc/utils.py b/tests/functest/odl-sfc/utils.py index 9cbc9ddb..cf72bd3a 100644 --- a/tests/functest/odl-sfc/utils.py +++ b/tests/functest/odl-sfc/utils.py @@ -104,8 +104,6 @@ def configure_iptables(): logger.info("Configuring %s on contoller" % cmd) run_cmd_on_controller(cmd) - return - def download_image(url, image_path): image_filename = os.path.basename(image_path) @@ -143,7 +141,6 @@ def setup_ingress_egress_secgroup(neutron_client, protocol, 'egress', protocol, port_range_min=min_port, port_range_max=max_port) - return def create_security_groups(neutron_client, secgroup_name, secgroup_descr): @@ -310,7 +307,6 @@ def capture_err_logs(ovs_logger, controller_clients, compute_clients, error): compute_clients, related_error=error, timestamp=timestamp) - return def get_ssh_clients(role, proxy): @@ -340,8 +336,8 @@ def check_ssh(ips, retries=100): return False -# Measure the time it takes to update the classification rules def timethis(func): + """Measure the time it takes to update the classification rules""" @functools.wraps(func) def timed(*args, **kwargs): ts = time.time() |