From 575a9bcd30db941b8868706932fbc48ac4f278d8 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Wed, 25 Sep 2024 22:36:56 +0300 Subject: [PATCH] Rename GroupQuorum to ShamirThreshold. Signed-off-by: Felix Fontein --- cmd/sops/main.go | 12 ++++++------ cmd/sops/subcommand/updatekeys/updatekeys.go | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) 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