backup_info: BackupDir shortcut

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2019-03-05 09:16:54 +01:00
parent 93b49ce38a
commit 391d310741
4 changed files with 22 additions and 9 deletions

View File

@ -98,7 +98,7 @@ fn delete_snapshots (
let backup_id = tools::required_string_param(&param, "backup-id")?;
let backup_time = tools::required_integer_param(&param, "backup-time")?;
let snapshot = BackupDir::new(BackupGroup::new(backup_type, backup_id), backup_time);
let snapshot = BackupDir::new(backup_type, backup_id, backup_time);
let datastore = DataStore::lookup_datastore(store)?;