mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
Update backwards compat fix from 5913
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
## 1.0.1 (unreleased)
|
## 1.0.1 (unreleased)
|
||||||
|
|
||||||
FEATURES:
|
IMPROVEMENTS:
|
||||||
|
|
||||||
* cli: Strip iTerm extra characters from password manager input [GH-5837]
|
* cli: Strip iTerm extra characters from password manager input [GH-5837]
|
||||||
* ui: Added ability to search for Group and Policy IDs when creating Groups
|
* ui: Added ability to search for Group and Policy IDs when creating Groups
|
||||||
@@ -9,6 +9,7 @@ FEATURES:
|
|||||||
BUG FIXES:
|
BUG FIXES:
|
||||||
|
|
||||||
* cli: Show correct stored keys/threshold for autoseals [GH-5910]
|
* cli: Show correct stored keys/threshold for autoseals [GH-5910]
|
||||||
|
* cli: Fix backwards compatibility fallback when listing plugins [GH-5913]
|
||||||
* namespaces: Correctly reload the proper mount when tuning or reloading the
|
* namespaces: Correctly reload the proper mount when tuning or reloading the
|
||||||
mount [GH-5937]
|
mount [GH-5937]
|
||||||
* secret/pki: Fix panic that could occur during tidy operation when malformed
|
* secret/pki: Fix panic that could occur during tidy operation when malformed
|
||||||
|
|||||||
@@ -49,6 +49,9 @@ func (c *Sys) ListPlugins(i *ListPluginsInput) (*ListPluginsResponse, error) {
|
|||||||
if err != nil && resp == nil {
|
if err != nil && resp == nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
if resp == nil {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
// We received an Unsupported Operation response from Vault, indicating
|
// We received an Unsupported Operation response from Vault, indicating
|
||||||
|
|||||||
@@ -353,6 +353,9 @@ func (p *Predict) plugins(pluginTypes ...consts.PluginType) []string {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
if result == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
for _, names := range result.PluginsByType {
|
for _, names := range result.PluginsByType {
|
||||||
for _, name := range names {
|
for _, name := range names {
|
||||||
if _, ok := pluginsAdded[name]; !ok {
|
if _, ok := pluginsAdded[name]; !ok {
|
||||||
|
|||||||
@@ -96,6 +96,10 @@ func (c *PluginListCommand) Run(args []string) int {
|
|||||||
c.UI.Error(fmt.Sprintf("Error listing available plugins: %s", err))
|
c.UI.Error(fmt.Sprintf("Error listing available plugins: %s", err))
|
||||||
return 2
|
return 2
|
||||||
}
|
}
|
||||||
|
if resp == nil {
|
||||||
|
c.UI.Error("No response from server when listing plugins")
|
||||||
|
return 2
|
||||||
|
}
|
||||||
|
|
||||||
switch Format(c.UI) {
|
switch Format(c.UI) {
|
||||||
case "table":
|
case "table":
|
||||||
|
|||||||
Reference in New Issue
Block a user