X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=systest%2Flib%2Fvim%2Fvim.py;h=0ac952543f3f49a537ae6aaa2a401457d2179c3a;hb=84fe31f632166d2fbf566968bd25aa9545e96fdc;hp=98bda387301bf072f2630aa705b631ad708b54aa;hpb=c7a82d0be7c72183e6db9e0fb522b484f9c8df84;p=osm%2Fdevops.git diff --git a/systest/lib/vim/vim.py b/systest/lib/vim/vim.py index 98bda387..0ac95254 100644 --- a/systest/lib/vim/vim.py +++ b/systest/lib/vim/vim.py @@ -18,9 +18,12 @@ from osmclient.common.exceptions import ClientException class Vim(): - def __init__(self,osm,openstack): + def __init__(self,osm,openstack,vmware): self.vim_name='pytest' try: osm.get_api().vim.get(self.vim_name) except ClientException: - osm.get_api().vim.create(self.vim_name,openstack.get_access()) + if vmware._os_access['vim-url'] and vmware._os_access['vim-type'] == 'vmware': + osm.get_api().vim.create(self.vim_name,vmware.get_access()) + else: + osm.get_api().vim.create(self.vim_name,openstack.get_access())