2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-30 00:33:57 +00:00

fix: switch struct_type value to lower case

This commit is contained in:
kitone 2018-08-14 11:15:17 +02:00 committed by Alexander Neumann
parent bd6e7c934c
commit 48cc2f2188

View File

@ -161,7 +161,7 @@ func runLs(opts LsOptions, gopts GlobalOptions, args []string) error {
Snapshot: sn,
ID: sn.ID(),
ShortID: sn.ID().Str(),
StructType: "Snapshot",
StructType: "snapshot",
}
lssnapshots = append(lssnapshots, lss)
}
@ -178,7 +178,7 @@ func runLs(opts LsOptions, gopts GlobalOptions, args []string) error {
ModTime: node.ModTime,
AccessTime: node.AccessTime,
ChangeTime: node.ChangeTime,
StructType: "Node",
StructType: "node",
}
s := &lssnapshots[len(lssnapshots)-1]
s.Nodes = append(s.Nodes, lsn)