Skip to content

Commit 1a46448

Browse files
author
David Garcia
committed
Add api_endpoints property to Controller
1 parent af10ed0 commit 1a46448

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

juju/controller.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,14 @@ def controller_name(self):
180180
def controller_uuid(self):
181181
return self._connector.controller_uuid
182182

183+
@property
184+
def api_endpoints(self):
185+
controller_name = self._connector.jujudata.current_controller()
186+
if controller_name:
187+
return self._connector.jujudata.controllers().get(controller_name).get(
188+
"api-endpoints"
189+
)
190+
183191
async def disconnect(self):
184192
"""Shut down the watcher task and close websockets.
185193

0 commit comments

Comments
 (0)