From 138abeb5f76fcf265529d815dcf11aad32f00d7e Mon Sep 17 00:00:00 2001 From: James Phillips Date: Tue, 25 Apr 2017 16:31:20 -0700 Subject: [PATCH] Tweaks ACL replication status struct name. --- api/acl.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/acl.go b/api/acl.go index 3bf7cc8de0..ee6d196669 100644 --- a/api/acl.go +++ b/api/acl.go @@ -22,7 +22,7 @@ type ACLEntry struct { Rules string } -// ACLReplicationEntry is used to represent an ACLReplication entry +// ACLReplicationStatus is used to represent the status of ACL replication. type ACLReplicationEntry struct { Enabled bool Running bool @@ -154,7 +154,7 @@ func (a *ACL) List(q *QueryOptions) ([]*ACLEntry, *QueryMeta, error) { } // Replication returns the status of the ACL replication process in the datacenter -func (a *ACL) Replication(q *QueryOptions) (*ACLReplicationEntry, *QueryMeta, error) { +func (a *ACL) Replication(q *QueryOptions) (*ACLReplicationStatus, *QueryMeta, error) { r := a.c.newRequest("GET", "/v1/acl/replication") r.setQueryOptions(q) rtt, resp, err := requireOK(a.c.doRequest(r)) @@ -167,7 +167,7 @@ func (a *ACL) Replication(q *QueryOptions) (*ACLReplicationEntry, *QueryMeta, er parseQueryMeta(resp, qm) qm.RequestTime = rtt - var entries *ACLReplicationEntry + var entries *ACLReplicationStatus if err := decodeBody(resp, &entries); err != nil { return nil, nil, err }