fix input names

This commit is contained in:
Martin Thielecke 2023-10-05 15:47:28 +02:00
parent 8f06f1ddc4
commit cbbbcc8096
Signed by: mthie
GPG Key ID: D1D25A85C8604DFB

View File

@ -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)