mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-24 08:00:17 -06:00
Fix typo in crypto.go (#387)
This commit is contained in:
parent
25358ab9a4
commit
a3a57375ab
@ -125,7 +125,7 @@ var BcryptFunc = function.New(&function.Spec{
|
||||
input := args[0].AsString()
|
||||
out, err := bcrypt.GenerateFromPassword([]byte(input), defaultCost)
|
||||
if err != nil {
|
||||
return cty.UnknownVal(cty.String), fmt.Errorf("error occured generating password %s", err.Error())
|
||||
return cty.UnknownVal(cty.String), fmt.Errorf("error occurred generating password %s", err.Error())
|
||||
}
|
||||
|
||||
return cty.StringVal(string(out)), nil
|
||||
|
Loading…
Reference in New Issue
Block a user