Skip to content

Commit

Permalink
fixing p11lib detection on reset-pkcs11-keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo committed Mar 11, 2020
1 parent eeca42e commit 74e8427
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/reset-pkcs11-keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func resetPKCS11Keys(cmd *cobra.Command, args []string) error {
if err := viper.BindPFlags(cmd.Flags()); err != nil {
return err
}
p11lib, _ := cmd.Flags().GetString("p11lib")
p11lib := viper.GetString("p11lib")
if len(p11lib) == 0 {
return fmt.Errorf("p11lib not specified")
}
Expand All @@ -49,4 +49,4 @@ func resetPKCS11Keys(cmd *cobra.Command, args []string) error {
}
Log.Printf("All keys destroyed.")
return nil
}
}

0 comments on commit 74e8427

Please sign in to comment.