2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-02 00:50:48 +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, Snapshot: sn,
ID: sn.ID(), ID: sn.ID(),
ShortID: sn.ID().Str(), ShortID: sn.ID().Str(),
StructType: "Snapshot", StructType: "snapshot",
} }
lssnapshots = append(lssnapshots, lss) lssnapshots = append(lssnapshots, lss)
} }
@ -178,7 +178,7 @@ func runLs(opts LsOptions, gopts GlobalOptions, args []string) error {
ModTime: node.ModTime, ModTime: node.ModTime,
AccessTime: node.AccessTime, AccessTime: node.AccessTime,
ChangeTime: node.ChangeTime, ChangeTime: node.ChangeTime,
StructType: "Node", StructType: "node",
} }
s := &lssnapshots[len(lssnapshots)-1] s := &lssnapshots[len(lssnapshots)-1]
s.Nodes = append(s.Nodes, lsn) s.Nodes = append(s.Nodes, lsn)