Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Compare keysetName to "snakeoil", not to itself
Browse files Browse the repository at this point in the history
All keysets were being created with the snakeoil pcr7data because
a switch was comparing keysetName to itself.

Signed-off-by: Serge Hallyn <[email protected]>
  • Loading branch information
hallyn committed Aug 28, 2023
1 parent c97a487 commit ecb9127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/trust/keyset.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func doAddKeyset(ctx *cli.Context) error {
}

switch keysetName {
case keysetName:
case "snakeoil":
// git clone if keyset is snakeoil
_, err = git.PlainClone(keysetPath, false, &git.CloneOptions{URL: "https://github.com/project-machine/keys.git"})

Expand Down

0 comments on commit ecb9127

Please sign in to comment.