Skip to content

Commit df3ec42

Browse files
committed
Emit a warning in update_endpoints on failure
1 parent f31ef16 commit df3ec42

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
@@ -146,6 +146,7 @@ async def update_endpoints(self):
146146
for e in info.results[0].addresses
147147
]
148148
except errors.JujuPermissionError:
149+
log.warning("This user doesn't have at least read access to the controller model, so endpoints are not updated after connection.")
149150
pass
150151

151152
async def connect_current(self):

0 commit comments

Comments
 (0)