Merge pull request #2577 from alrs/fix-internal-errs

internal: Fix code and test dropped errors
This commit is contained in:
rawtaz authored and GitHub committed 2020-02-12 23:41:54 +01:00
commit d8da9c4401
4 files changed
+7

No files matched your search

+4
View File
@@ -823,6 +823,10 @@ func (arch *Archiver) Snapshot(ctx context.Context, targets []string, opts Snaps
}
sn, err := restic.NewSnapshot(targets, opts.Tags, opts.Hostname, opts.Time)
if err != nil {
return nil, restic.ID{}, err
}
sn.Excludes = opts.Excludes
if !opts.ParentSnapshot.IsNull() {
id := opts.ParentSnapshot