mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
admin: Set Config returns errSet and errMsg (#3822)
There is no way to see if a node encountered an error when trying to set a new config set, this commit adds a bool errSet field.
This commit is contained in:
committed by
Harshavardhana
parent
32d0d3d4ac
commit
cddc684559
@@ -330,7 +330,8 @@ change to take effect.
|
||||
|---|---|---|
|
||||
|`st.Status` | _bool_ | true if set-config succeeded, false otherwise. |
|
||||
|`st.NodeSummary.Name` | _string_ | Network address of the node. |
|
||||
|`st.NodeSummary.Err` | _string_ | String representation of the error (if any) on the node.|
|
||||
|`st.NodeSummary.ErrSet` | _bool_ | Bool representation indicating if an error is encountered with the node.|
|
||||
|`st.NodeSummary.ErrMsg` | _string_ | String representation of the error (if any) on the node.|
|
||||
|
||||
|
||||
__Example__
|
||||
|
||||
@@ -33,8 +33,9 @@ const (
|
||||
// NodeSummary - represents the result of an operation part of
|
||||
// set-config on a node.
|
||||
type NodeSummary struct {
|
||||
Name string `json:"name"`
|
||||
Err string `json:"err"`
|
||||
Name string `json:"name"`
|
||||
ErrSet bool `json:"errSet"`
|
||||
ErrMsg string `json:"errMsg"`
|
||||
}
|
||||
|
||||
// SetConfigResult - represents detailed results of a set-config
|
||||
|
||||
Reference in New Issue
Block a user