File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -744,7 +744,8 @@ def _reconcile_mongo_hosts_and_users(self, event: RelationEvent) -> None:
744
744
self ._add_units_from_replica_set (event , mongo , mongodb_hosts - replset_members )
745
745
746
746
# app relations should be made aware of the new set of hosts
747
- self .client_relations .update_app_relation_data ()
747
+ if not self .is_role (Config .Role .SHARD ):
748
+ self .client_relations .update_app_relation_data ()
748
749
749
750
except NotReadyError :
750
751
self .status .set_and_share_status (
@@ -1574,8 +1575,8 @@ def is_relation_feasible(self, rel_interface: str) -> bool:
1574
1575
)
1575
1576
logger .error (
1576
1577
"Charm is in sharding role: %s. Does not support %s interface." ,
1577
- rel_interface ,
1578
1578
self .role ,
1579
+ rel_interface ,
1579
1580
)
1580
1581
return False
1581
1582
You can’t perform that action at this time.
0 commit comments