Skip to content

Commit

Permalink
Adding logic to detect invalid input parameter for auth enable config
Browse files Browse the repository at this point in the history
  • Loading branch information
hghaf099 committed Jul 20, 2021
1 parent 1594733 commit e8515b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vault/logical_system.go
Expand Up @@ -1920,6 +1920,8 @@ func augmentEnableAuthConfigMap(configMap map[string]interface{}) error {
return err
}
outputSlice = append(outputSlice, res...)
default:
return fmt.Errorf("Invalid input parameter type for %v", paramName)
}
configMap[paramName] = outputSlice
}
Expand Down

0 comments on commit e8515b3

Please sign in to comment.