src/api2/admin/datastore.rs: impl list_snapshots

This commit is contained in:
Dietmar Maurer
2019-03-02 16:20:50 +01:00
parent af53186e6a
commit 184f17afad
4 changed files with 159 additions and 11 deletions

View File

@ -39,7 +39,7 @@ impl BackupRepository {
pub fn parse(url: &str) -> Result<Self, Error> {
let cap = BACKUP_REPO_URL_REGEX.captures(url)
.ok_or_else(|| format_err!("unable to parse reepository url '{}'", url))?;
.ok_or_else(|| format_err!("unable to parse repository url '{}'", url))?;
Ok(BackupRepository {
user: cap.get(1).map_or("root@pam", |m| m.as_str()).to_owned(),