diff --git a/gates_tests/helpers/utils.py b/gates_tests/helpers/utils.py index a4b36ff6e..bbeba6812 100644 --- a/gates_tests/helpers/utils.py +++ b/gates_tests/helpers/utils.py @@ -430,9 +430,18 @@ def check_package_version_injected_in_bootstraps( def update_bootstrap_cli_yaml(): actions = BaseActions() path = "/etc/fuel-bootstrap-cli/fuel_bootstrap_cli.yaml" - new_repo = {'name': 'auxiliary', 'priority': "1200", - 'section': 'main restricted', - 'suite': 'auxiliary', 'type': 'deb', - 'uri': 'http://127.0.0.1:8080/ubuntu/auxiliary/'} + astute_yaml_path = "/etc/fuel/astute.yaml" + + with YamlEditor(astute_yaml_path, ip=actions.admin_ip) as editor: + repos = editor.content["BOOTSTRAP"]["repos"] + + repos.append({ + 'name': 'auxiliary', + 'priority': "1200", + 'section': 'main restricted', + 'suite': 'auxiliary', + 'type': 'deb', + 'uri': 'http://127.0.0.1:8080/ubuntu/auxiliary/'}) + with YamlEditor(path, ip=actions.admin_ip) as editor: - editor.content['repos'].append(new_repo) + editor.content['repos'] = repos