(file_path, params)
| 33 | |
| 34 | |
| 35 | def fill_params_in_yaml(file_path, params): |
| 36 | with open(file_path, "r") as file: |
| 37 | yaml_content = file.read() |
| 38 | for param_key, param_value in params.items(): |
| 39 | yaml_content = yaml_content.replace( |
| 40 | "${" + param_key + "}", str(param_value) |
| 41 | ) |
| 42 | return yaml.safe_load(yaml_content) |
no test coverage detected