vcenter test provider handle config vars handling (#57813)

Make vcenter test provider handle config file vars the same regardless of
whether it comes from static config or from worldstream provisioning
pull/56534/head
Jill R 5 years ago committed by GitHub
parent e7bf46d8bc
commit 7ce85ee9e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -102,6 +102,7 @@ class VcenterProvider(CloudProvider):
self._set_cloud_config('vmware_test_platform', self.vmware_test_platform)
if self._use_static_config():
self._set_cloud_config('vmware_test_platform', 'static')
self._setup_static()
elif self.vmware_test_platform == 'worldstream':
self._setup_dynamic_baremetal()
@ -250,7 +251,7 @@ class VcenterEnvironment(CloudEnvironment):
:rtype: CloudEnvironmentConfig
"""
vmware_test_platform = self._get_cloud_config('vmware_test_platform')
if vmware_test_platform == 'worldstream':
if vmware_test_platform in ('worldstream', 'static'):
parser = ConfigParser()
parser.read(self.config_path)

Loading…
Cancel
Save