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:
Anis Elleuch
2017-03-03 11:53:48 +01:00
committed by Harshavardhana
parent 32d0d3d4ac
commit cddc684559
4 changed files with 19 additions and 10 deletions

View File

@@ -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