Skip to content

Commit

Permalink
Merge pull request #9494 from vavuthu/rhel_deployment_issue_cred_file…
Browse files Browse the repository at this point in the history
…_shared

use shared_credentials_files in vSphere RHEL deployment
  • Loading branch information
vavuthu authored Mar 19, 2024
2 parents 4a18286 + fd16690 commit fc479be
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ocs_ci/deployment/helpers/vsphere_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}"'
Expand All @@ -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(
Expand Down

0 comments on commit fc479be

Please sign in to comment.