1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-16 00:00:05 +01:00

Fixes Hound ans CI

This commit is contained in:
ibib 2017-01-28 14:42:49 +01:00
parent 920cb3a536
commit b054ba0d72

View file

@ -136,11 +136,12 @@ func naturaloutput(list []*restic.Snapshot) {
tab.Write(os.Stdout)
return nil
return
}
//Snapshot provides struct to store snapshots
type Snapshot struct {
Id string `json:"id"`
ID string `json:"id"`
Date string `json:"date"`
Host string `json:"host"`
Tags []string `json:"tags"`
@ -154,7 +155,7 @@ func jsonoutput(list []*restic.Snapshot) error {
for _, sn := range list {
k := Snapshot{
Id: sn.ID().Str(),
ID: sn.ID().Str(),
Date: sn.Time.Format(TimeFormat),
Host: sn.Hostname,
Tags: sn.Tags,