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
1 changed files with 2 additions and 2 deletions

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)