From b56d84860a43ea8a43ac21c374d61cfa8f228127 Mon Sep 17 00:00:00 2001 From: Tony Meyer Date: Fri, 22 Sep 2023 12:28:58 +1200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Ben Hoyt --- ops/model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ops/model.py b/ops/model.py index 8fbc711dd..5155a96db 100644 --- a/ops/model.py +++ b/ops/model.py @@ -452,7 +452,7 @@ def _calculate_expiry(expire: Optional[Union[datetime.datetime, datetime.timedel class Unit: """Represents a named unit in the model. - This might be this charm's unit, another unit of the charm's application, or a unit of + This might be the current unit, another unit of the charm's application, or a unit of another application that the charm is related to. """ @@ -907,7 +907,7 @@ def bind_address(self) -> Optional[Union[ipaddress.IPv4Address, ipaddress.IPv6Ad @property def ingress_address(self) -> Optional[ Union[ipaddress.IPv4Address, ipaddress.IPv6Address, str]]: - """The address other applications should use to connect to the charm's unit. + """The address other applications should use to connect to the current unit. Due to things like public/private addresses, NAT and tunneling, the address the charm will bind() to is not always the address other people can use to connect() to the