Skip to content

Commit 1871d96

Browse files
committed
Fix docstring urls for the API categories at consul.io
1 parent 81e5b74 commit 1871d96

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

consulate/__init__.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def __init__(self,
8585
@property
8686
def acl(self):
8787
"""Access the Consul
88-
`ACL <https://www.consul.io/docs/agent/http.html#acl>`_ API
88+
`ACL <https://www.consul.io/docs/agent/http/acl.html>`_ API
8989
9090
:rtype: :py:class:`consulate.api.acl.ACL`
9191
@@ -95,7 +95,7 @@ def acl(self):
9595
@property
9696
def agent(self):
9797
"""Access the Consul
98-
`Agent <https://www.consul.io/docs/agent/http.html#agent>`_ API
98+
`Agent <https://www.consul.io/docs/agent/http/agent.html>`_ API
9999
100100
:rtype: :py:class:`consulate.api.agent.Agent`
101101
@@ -105,7 +105,7 @@ def agent(self):
105105
@property
106106
def catalog(self):
107107
"""Access the Consul
108-
`Catalog <https://www.consul.io/docs/agent/http.html#catalog>`_ API
108+
`Catalog <https://www.consul.io/docs/agent/http/catalog.html>`_ API
109109
110110
:rtype: :py:class:`consulate.api.catalog.Catalog`
111111
@@ -115,7 +115,7 @@ def catalog(self):
115115
@property
116116
def event(self):
117117
"""Access the Consul
118-
`Events <https://www.consul.io/docs/agent/http.html#events>`_ API
118+
`Events <https://www.consul.io/docs/agent/http/event.html>`_ API
119119
120120
:rtype: :py:class:`consulate.api.event.Event`
121121
@@ -125,7 +125,7 @@ def event(self):
125125
@property
126126
def health(self):
127127
"""Access the Consul
128-
`Health <https://www.consul.io/docs/agent/http.html#health>`_ API
128+
`Health <https://www.consul.io/docs/agent/http/health.html>`_ API
129129
130130
:rtype: :py:class:`consulate.api.health.Health`
131131
@@ -135,7 +135,7 @@ def health(self):
135135
@property
136136
def kv(self):
137137
"""Access the Consul
138-
`KV <https://www.consul.io/docs/agent/http.html#kv>`_ API
138+
`KV <https://www.consul.io/docs/agent/http/kv.html>`_ API
139139
140140
:rtype: :py:class:`consulate.api.kv.KV`
141141
@@ -145,7 +145,7 @@ def kv(self):
145145
@property
146146
def lock(self):
147147
"""Wrapper for easy :class:`~consulate.api.kv.KV` locks.
148-
148+
`Semaphore <https://www.consul.io/docs/guides/semaphore.html>` _Guide
149149
Example:
150150
151151
.. code:: python
@@ -165,7 +165,7 @@ def lock(self):
165165
@property
166166
def session(self):
167167
"""Access the Consul
168-
`Session <https://www.consul.io/docs/agent/http.html#session>`_ API
168+
`Session <https://www.consul.io/docs/agent/http/session.html>`_ API
169169
170170
:rtype: :py:class:`consulate.api.session.Session`
171171
@@ -175,7 +175,7 @@ def session(self):
175175
@property
176176
def status(self):
177177
"""Access the Consul
178-
`Status <https://www.consul.io/docs/agent/http.html#status>`_ API
178+
`Status <https://www.consul.io/docs/agent/http/status.html>`_ API
179179
180180
:rtype: :py:class:`consulate.api.status.Status`
181181

consulate/api/acl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def create(self, name, acl_type='client', rules=None):
2929
the create endpoint.
3030
3131
``rules`` is a HCL string defining the rule policy. See
32-
`https://consul.io/docs/internals/acl.html`_ for more information on
33-
defining rules.
32+
`Internals on <https://www.consul.io/docs/internals/acl.html>`_ ACL
33+
for more information on defining rules.
3434
3535
The call to create will return the ID of the new ACL.
3636

0 commit comments

Comments
 (0)