Skip to content

Commit

Permalink
Emit a warning in update_endpoints on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
cderici committed Jan 8, 2024
1 parent f31ef16 commit df3ec42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions juju/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ async def update_endpoints(self):
for e in info.results[0].addresses
]
except errors.JujuPermissionError:
log.warning("This user doesn't have at least read access to the controller model, so endpoints are not updated after connection.")
pass

async def connect_current(self):
Expand Down

0 comments on commit df3ec42

Please sign in to comment.