aboutsummaryrefslogtreecommitdiffstats
path: root/sfc/lib/openstack_utils.py
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2018-03-11 21:52:27 +0100
committerManuel Buil <mbuil@suse.com>2018-03-11 21:59:50 +0100
commit83f6c393d31ed6bb0105380c8c158f4a724189ce (patch)
tree6be6e975273a9cc910cbb3377de4e98dc8634ec8 /sfc/lib/openstack_utils.py
parentcde9c60e0bcb6ba141ce50d913dc138bfca3493d (diff)
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 <mbuil@suse.com>
Diffstat (limited to 'sfc/lib/openstack_utils.py')
-rw-r--r--sfc/lib/openstack_utils.py7
1 files changed, 3 insertions, 4 deletions
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!!")