From 48cc2f2188e299910ce9c302f0f8f95f4e37202d Mon Sep 17 00:00:00 2001 From: kitone Date: Tue, 14 Aug 2018 11:15:17 +0200 Subject: [PATCH] fix: switch struct_type value to lower case --- cmd/restic/cmd_ls.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/restic/cmd_ls.go b/cmd/restic/cmd_ls.go index a6065309f..d6297be04 100644 --- a/cmd/restic/cmd_ls.go +++ b/cmd/restic/cmd_ls.go @@ -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)