Skip to content

Commit bddf2c8

Browse files
committed
Avoid negotiating version if client doesn't know the facade
This is to suppress redundant warning messages (about facade versions) to be emitted in case the facade in question is not known to the pylibjuju client.
1 parent e4ea8ab commit bddf2c8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

juju/client/connection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,7 @@ def _build_facades(self, facades_from_connection):
894894
# if a facade is required but the client doesn't know about
895895
# it, then log a warning.
896896
log.warning(f'unexpected facade {name} received from the controller')
897+
continue
897898

898899
try:
899900
# allow the ability to specify a set of facade versions, so the

0 commit comments

Comments
 (0)