diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-04-21 16:18:17 +0200 |
---|---|---|
committer | Cedric Ollivier <cedric.ollivier@orange.com> | 2018-04-21 14:40:07 +0000 |
commit | 67a905abf5f14d1a28ae61c4f5f0c15250e85e0e (patch) | |
tree | 3ec47897eb2538586761641e05f6e4769bce87dc | |
parent | a6e032bcd2bc9a251c3f8868aac2f9de1ff392de (diff) |
Bypass NoneType errors when creating router
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>
-rw-r--r-- | functest/opnfv_tests/openstack/vping/vping_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functest/opnfv_tests/openstack/vping/vping_base.py b/functest/opnfv_tests/openstack/vping/vping_base.py index 152f69da6..92ae1b853 100644 --- a/functest/opnfv_tests/openstack/vping/vping_base.py +++ b/functest/opnfv_tests/openstack/vping/vping_base.py @@ -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 |