diff options
Diffstat (limited to 'go/operation/list_masters.go')
| -rw-r--r-- | go/operation/list_masters.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/go/operation/list_masters.go b/go/operation/list_masters.go index 05235aed0..ade975c71 100644 --- a/go/operation/list_masters.go +++ b/go/operation/list_masters.go @@ -23,5 +23,9 @@ func ListMasters(server string) ([]string, error) { if err != nil { return nil, err } - return ret.Peers, nil + masters := ret.Peers + if ret.IsLeader { + masters = append(masters, ret.Leader) + } + return masters, nil } |
