fix input names
This commit is contained in:
parent
8f06f1ddc4
commit
cbbbcc8096
6
main.go
6
main.go
|
@ -111,11 +111,11 @@ func getVaultSecret(p string) (*vault.Secret, error) {
|
|||
|
||||
func setVaultTokenFromRoleID() error {
|
||||
data := map[string]any{
|
||||
"role_id": getInput("role-id"),
|
||||
"role_id": getInput("roleid"),
|
||||
}
|
||||
|
||||
if getInput("secret-id") != "" {
|
||||
data["secret_id"] = getInput("secret-id")
|
||||
if getInput("secretid") != "" {
|
||||
data["secret_id"] = getInput("secretid")
|
||||
}
|
||||
|
||||
loginSecret, err := vaultClient.Logical().Write("auth/approle/login", data)
|
||||
|
|
Loading…
Reference in New Issue
Block a user