diff --git a/cmd/sops/main.go b/cmd/sops/main.go index 5b1050e453..503968fd99 100644 --- a/cmd/sops/main.go +++ b/cmd/sops/main.go @@ -643,12 +643,12 @@ func main() { failedCounter := 0 for _, path := range c.Args() { err := updatekeys.UpdateKeys(updatekeys.Opts{ - InputPath: path, - GroupQuorum: c.Int("shamir-secret-sharing-threshold"), - KeyServices: keyservices(c), - Interactive: !c.Bool("yes"), - ConfigPath: configPath, - InputType: c.String("input-type"), + InputPath: path, + ShamirThreshold: c.Int("shamir-secret-sharing-threshold"), + KeyServices: keyservices(c), + Interactive: !c.Bool("yes"), + ConfigPath: configPath, + InputType: c.String("input-type"), }) if c.NArg() == 1 { diff --git a/cmd/sops/subcommand/updatekeys/updatekeys.go b/cmd/sops/subcommand/updatekeys/updatekeys.go index cb9ca7c36b..41fab78e4d 100644 --- a/cmd/sops/subcommand/updatekeys/updatekeys.go +++ b/cmd/sops/subcommand/updatekeys/updatekeys.go @@ -15,7 +15,7 @@ import ( // Opts represents key operation options and config type Opts struct { InputPath string - GroupQuorum int + ShamirThreshold int KeyServices []keyservice.KeyServiceClient DecryptionOrder []string Interactive bool