fix: datastore: make relative_group_path() return relative path

previously the BackGroup trait used the datastore's
namespace_path() method to construct a base path. this would result in
it returning an absolute path equivalent to full_group_path(). use
the namspace's path() method instead to get a relative path, in-line
with backup_dir's relative_path().

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
This commit is contained in:
Stefan Sterz 2022-08-24 14:48:25 +02:00 committed by Thomas Lamprecht
parent a554ac1950
commit a756b0c1a1

View File

@ -72,7 +72,7 @@ impl BackupGroup {
}
pub fn relative_group_path(&self) -> PathBuf {
let mut path = self.store.namespace_path(&self.ns);
let mut path = self.ns.path();
path.push(self.group.ty.as_str());
path.push(&self.group.id);
path