From 83f6c393d31ed6bb0105380c8c158f4a724189ce Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Sun, 11 Mar 2018 21:52:27 +0100 Subject: Remove SNAPs deprecated method SNAPs is not supporting get_vm_info() anymore, we should remove it from our lib https://gerrit.opnfv.org/gerrit/#/c/53263/4 Change-Id: Idad1bb60b86c45256bb0a95b6c554e83e6bfae35 Signed-off-by: Manuel Buil --- sfc/lib/openstack_utils.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sfc/lib/openstack_utils.py') diff --git a/sfc/lib/openstack_utils.py b/sfc/lib/openstack_utils.py index 2752ba5d..e127e8d2 100644 --- a/sfc/lib/openstack_utils.py +++ b/sfc/lib/openstack_utils.py @@ -159,11 +159,10 @@ class OpenStackSFC: ''' for creator in self.creators: # We want to filter the vm creators - if hasattr(creator, 'get_vm_info'): - vm_info = creator.get_vm_info() + if hasattr(creator, 'get_vm_inst'): # We want to fetch only the client - if vm_info['name'] == 'client': - return vm_info['OS-EXT-SRV-ATTR:host'] + if creator.get_vm_inst().name == 'client': + return creator.get_vm_inst().compute_host raise Exception("There is no client VM!!") -- cgit 1.2.3-korg