From fd166903815030ea9be2c8bee87d874cc008c6fe Mon Sep 17 00:00:00 2001 From: vavuthu Date: Sat, 16 Mar 2024 13:56:32 +0530 Subject: [PATCH] use shared_credentials_files in vSphere RHEL deployment Signed-off-by: vavuthu --- ocs_ci/deployment/helpers/vsphere_helpers.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ocs_ci/deployment/helpers/vsphere_helpers.py b/ocs_ci/deployment/helpers/vsphere_helpers.py index 25f42aad108..7c385ed59ab 100644 --- a/ocs_ci/deployment/helpers/vsphere_helpers.py +++ b/ocs_ci/deployment/helpers/vsphere_helpers.py @@ -158,6 +158,14 @@ def modify_scaleup_repo(self): dump_data_to_temp_yaml(dict_data, default_map_path) + cred_file_var_to_modify = "shared_credentials_file" + target_cred_file_var = "shared_credentials_files" + replace_content_in_file( + constants.SCALEUP_VSPHERE_ROUTE53, + cred_file_var_to_modify, + target_cred_file_var, + ) + str_to_modify = "var.AWS_CREDS" target_str = ( f'{str_to_modify}\n profile = "{config.DEPLOYMENT["aws_profile"]}"' @@ -172,7 +180,7 @@ def modify_scaleup_repo(self): replace_content_in_file( constants.SCALEUP_VSPHERE_ROUTE53, str_to_modify, - f'"{os.path.expanduser(config.DEPLOYMENT["aws_cred_path"])}"', + f'["{os.path.expanduser(config.DEPLOYMENT["aws_cred_path"])}"]', ) replace_content_in_file(