Bypass NoneType errors when creating router 91/56191/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Sat, 21 Apr 2018 14:18:17 +0000 (16:18 +0200)
committerCedric Ollivier <cedric.ollivier@orange.com>
Sat, 21 Apr 2018 14:40:07 +0000 (14:40 +0000)
It converts private subnet name to str as it's mandary till [1].
It could be reverted as soon as [2] is merged in snaps.

[1] https://gerrit.opnfv.org/gerrit/#/c/56091/
[2] https://gerrit.opnfv.org/gerrit/#/c/56171/

Change-Id: I849944fa9d4d2be21fe1a37b76c4cfd231b6d56f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
functest/opnfv_tests/openstack/vping/vping_base.py

index 152f69d..92ae1b8 100644 (file)
@@ -97,8 +97,8 @@ class VPingBase(testcase.TestCase):
 
         private_net_name = getattr(
             config.CONF, 'vping_private_net_name') + self.guid
-        private_subnet_name = getattr(
-            config.CONF, 'vping_private_subnet_name') + self.guid
+        private_subnet_name = str(getattr(
+            config.CONF, 'vping_private_subnet_name') + self.guid)
         private_subnet_cidr = getattr(config.CONF, 'vping_private_subnet_cidr')
 
         vping_network_type = None