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