aboutsummaryrefslogtreecommitdiffstats
path: root/sfc/lib/openstack_utils.py
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2019-01-18 16:41:28 +0100
committerManuel Buil <mbuil@suse.com>2019-01-21 10:19:01 +0100
commit264aa87f2ea4e52387b671a4d5e1394d46faf5ea (patch)
tree9fd0ed5264672c0bb046fd9f8769e6337a6ab753 /sfc/lib/openstack_utils.py
parent402517b52e126650c1403927fa0c2f34483e3ff0 (diff)
Simplify deletion test and fix unittest
Removing the port groups when deleting the first chain simplifies things because we don't need port_groups to be a variable of the SfcCommonTestCase class There were also some missing unittest Change-Id: I6ae780bdc72116907a9e6037571c29f28a6ba334 Signed-off-by: Manuel Buil <mbuil@suse.com>
Diffstat (limited to 'sfc/lib/openstack_utils.py')
-rw-r--r--sfc/lib/openstack_utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sfc/lib/openstack_utils.py b/sfc/lib/openstack_utils.py
index 0f5da884..3d620e2b 100644
--- a/sfc/lib/openstack_utils.py
+++ b/sfc/lib/openstack_utils.py
@@ -43,8 +43,7 @@ class OpenStackSFC:
def get_neutron_client_version(self):
api_version = os.getenv('OS_NETWORK_API_VERSION')
if api_version is not None:
- logger.info("OS_NETWORK_API_VERSION is set in env as '%s'",
- api_version)
+ logger.info("OS_NETWORK_API_VERSION is %s" % api_version)
return api_version
return DEFAULT_API_VERSION