Fix regression in returning empty value for approle cidrlist. (#13235)
This commit is contained in:
parent
fe0dd6f867
commit
c01b993bd3
|
@ -118,6 +118,11 @@ func decodeSecretIDStorageEntry(entry *logical.StorageEntry) (*secretIDStorageEn
|
|||
}
|
||||
|
||||
cleanup := func(in []string) []string {
|
||||
if len(in) == 0 {
|
||||
// Don't change unnecessarily, if it was empty list leave as empty list
|
||||
// instead of making it nil.
|
||||
return in
|
||||
}
|
||||
var out []string
|
||||
for _, s := range in {
|
||||
out = append(out, parseip.TrimLeadingZeroesCIDR(s))
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
auth/approle: Fix regression where unset cidrlist is returned as nil instead of zero-length array.
|
||||
```
|
Loading…
Reference in New Issue