mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +00:00
VAULT-12264: Fix log rotation params which require an integer (#18666)
* integer values for some log flags * Adjusted `log_flags` to expect `int` for max files and max bytes * Updated `server` and `agent` Renamed updateConfig (and updateLogConfig) * Added int log params to test * Adjust config/params so we can identify when they're not present * Removed pointer confusion
This commit is contained in:
@@ -249,14 +249,14 @@ func (i *intValue) Set(s string) error {
|
||||
return err
|
||||
}
|
||||
if v >= math.MinInt && v <= math.MaxInt {
|
||||
*i.target = int(v)
|
||||
*i.target = v
|
||||
return nil
|
||||
}
|
||||
return fmt.Errorf("Incorrect conversion of a 64-bit integer to a lower bit size. Value %d is not within bounds for int32", v)
|
||||
}
|
||||
|
||||
func (i *intValue) Get() interface{} { return int(*i.target) }
|
||||
func (i *intValue) String() string { return strconv.Itoa(int(*i.target)) }
|
||||
func (i *intValue) Get() interface{} { return *i.target }
|
||||
func (i *intValue) String() string { return strconv.Itoa(*i.target) }
|
||||
func (i *intValue) Example() string { return "int" }
|
||||
func (i *intValue) Hidden() bool { return i.hidden }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user