diff options
author | valentin boucher <valentin.boucher@orange.com> | 2017-05-22 13:11:04 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-05-22 13:11:04 +0000 |
commit | c1a6979eb1c51083d357afa5caee12539f94b777 (patch) | |
tree | 7b44c5b63cbef69686a808f03e1fa49533ba26e9 /functest/utils/openstack_utils.py | |
parent | d71eadbd067f590ab0f456dfcd603ce183b3779c (diff) | |
parent | d7342a09d909b138faaa15046e9379769ccd3859 (diff) |
Merge "Delete line breaks before binary operator"
Diffstat (limited to 'functest/utils/openstack_utils.py')
-rw-r--r-- | functest/utils/openstack_utils.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/functest/utils/openstack_utils.py b/functest/utils/openstack_utils.py index 8bd95052..57a2aa2b 100644 --- a/functest/utils/openstack_utils.py +++ b/functest/utils/openstack_utils.py @@ -1081,10 +1081,10 @@ def check_security_group_rules(neutron_client, sg_id, direction, protocol, try: security_rules = get_security_group_rules(neutron_client, sg_id) security_rules = [rule for rule in security_rules - if (rule["direction"].lower() == direction - and rule["protocol"].lower() == protocol - and rule["port_range_min"] == port_min - and rule["port_range_max"] == port_max)] + if (rule["direction"].lower() == direction and + rule["protocol"].lower() == protocol and + rule["port_range_min"] == port_min and + rule["port_range_max"] == port_max)] if len(security_rules) == 0: return True else: |