Browse Source

Fix the backup of network node group data

Closes-Bug: #1626167
Change-Id: I4b2d2f28950fce01e3e492f0c1145af29b424bd5
changes/40/374240/2
Sergey Novikov 2 years ago
parent
commit
e793679717

+ 1
- 1
octane/handlers/backup_restore/admin_networks.py View File

@@ -16,7 +16,7 @@ from octane.util import puppet
16 16
 
17 17
 
18 18
 class AdminNetworks(base.PathFilterArchivator):
19
-    backup_directory = "/etc/hiera/networks.yaml"
19
+    backup_directory = "/etc/hiera/"
20 20
     allowed_files = ["networks.yaml"]
21 21
     backup_name = "networks"
22 22
 

+ 1
- 1
octane/tests/test_archivators.py View File

@@ -75,7 +75,7 @@ def test_path_backup(mocker, cls, path, name):
75 75
         (
76 76
             admin_networks.AdminNetworks,
77 77
             [],
78
-            "/etc/hiera/networks.yaml",
78
+            "/etc/hiera/",
79 79
             ["networks.yaml"],
80 80
             "networks"
81 81
         ),

Loading…
Cancel
Save