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
This commit is contained in:
parent
e7bf46d8bc
commit
7ce85ee9e8
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue