Browse Source

Merge "Updated bootstrap repos after fuel-bootstrap-cli reinstall"

Jenkins 2 years ago
parent
commit
d6b67554ad
1 changed files with 14 additions and 5 deletions
  1. 14
    5
      gates_tests/helpers/utils.py

+ 14
- 5
gates_tests/helpers/utils.py View File

@@ -514,9 +514,18 @@ def check_package_version_injected_in_bootstraps(
514 514
 def update_bootstrap_cli_yaml():
515 515
     actions = BaseActions()
516 516
     path = "/etc/fuel-bootstrap-cli/fuel_bootstrap_cli.yaml"
517
-    new_repo = {'name': 'auxiliary', 'priority': "1200",
518
-                'section': 'main restricted',
519
-                'suite': 'auxiliary', 'type': 'deb',
520
-                'uri': 'http://127.0.0.1:8080/ubuntu/auxiliary/'}
517
+    astute_yaml_path = "/etc/fuel/astute.yaml"
518
+
519
+    with YamlEditor(astute_yaml_path, ip=actions.admin_ip) as editor:
520
+        repos = editor.content["BOOTSTRAP"]["repos"]
521
+
522
+    repos.append({
523
+        'name': 'auxiliary',
524
+        'priority': "1200",
525
+        'section': 'main restricted',
526
+        'suite': 'auxiliary',
527
+        'type': 'deb',
528
+        'uri': 'http://127.0.0.1:8080/ubuntu/auxiliary/'})
529
+
521 530
     with YamlEditor(path, ip=actions.admin_ip) as editor:
522
-        editor.content['repos'].append(new_repo)
531
+        editor.content['repos'] = repos

Loading…
Cancel
Save