Skip to content

Commit 7ce85ee

Browse files
authored
vcenter test provider handle config vars handling (ansible#57813)
Make vcenter test provider handle config file vars the same regardless of whether it comes from static config or from worldstream provisioning
1 parent e7bf46d commit 7ce85ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/runner/lib/cloud/vcenter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def setup(self):
102102

103103
self._set_cloud_config('vmware_test_platform', self.vmware_test_platform)
104104
if self._use_static_config():
105+
self._set_cloud_config('vmware_test_platform', 'static')
105106
self._setup_static()
106107
elif self.vmware_test_platform == 'worldstream':
107108
self._setup_dynamic_baremetal()
@@ -250,7 +251,7 @@ def get_environment_config(self):
250251
:rtype: CloudEnvironmentConfig
251252
"""
252253
vmware_test_platform = self._get_cloud_config('vmware_test_platform')
253-
if vmware_test_platform == 'worldstream':
254+
if vmware_test_platform in ('worldstream', 'static'):
254255
parser = ConfigParser()
255256
parser.read(self.config_path)
256257

0 commit comments

Comments
 (0)