From a6f04aaa4bfa302f2d34dcc01cba9a0010d22057 Mon Sep 17 00:00:00 2001 From: spisarski Date: Fri, 14 Jul 2017 13:49:45 -0600 Subject: Change calls to SNAPS library exposing OpenStack instance objects. Openstack object structures can change when new API versions are released and SNAPS no longer is exposing OpenStack object implementations as this makes the library brittle. The only two SNAPS method calls affected are when functest needs to query for external networks and when vPing Userdata needs to obtain the console logs. JIRA: SNAPS-125 Change-Id: If6000e50eaa274713d9a6c964eabd1f73ded684e Signed-off-by: spisarski --- functest/opnfv_tests/openstack/snaps/snaps_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functest/opnfv_tests/openstack/snaps/snaps_utils.py') diff --git a/functest/opnfv_tests/openstack/snaps/snaps_utils.py b/functest/opnfv_tests/openstack/snaps/snaps_utils.py index 327ba073..309f9db1 100644 --- a/functest/opnfv_tests/openstack/snaps/snaps_utils.py +++ b/functest/opnfv_tests/openstack/snaps/snaps_utils.py @@ -16,4 +16,4 @@ def get_ext_net_name(os_creds): """ neutron = neutron_utils.neutron_client(os_creds) ext_nets = neutron_utils.get_external_networks(neutron) - return ext_nets[0]['network']['name'] + return ext_nets[0].name -- cgit 1.2.3-korg