Skip to content

Commit f02efc0

Browse files
committed
Emit a warning in update_endpoints on failure
1 parent 8e6dab7 commit f02efc0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

juju/controller.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ async def update_endpoints(self):
147147
for e in info.results[0].addresses
148148
]
149149
except errors.JujuPermissionError:
150+
log.warning("This user doesn't have at least read access to the controller model, so endpoints are not updated after connection.")
150151
pass
151152

152153
async def connect_current(self):

0 commit comments

Comments
 (0)