Fix the backup of network node group data

Closes-Bug: #1626167
Change-Id: I4b2d2f28950fce01e3e492f0c1145af29b424bd5
This commit is contained in:
Sergey Novikov 2016-09-21 18:22:15 +03:00
parent b71daaec85
commit e793679717
2 changed files with 2 additions and 2 deletions

View File

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

View File

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