From 6d11e9199ddb40cb474ae68150fc79fa6ea35e22 Mon Sep 17 00:00:00 2001 From: Cynerva Date: Wed, 28 Jun 2017 15:58:54 -0500 Subject: [PATCH] Add Unit.public_address property --- juju/unit.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/juju/unit.py b/juju/unit.py index 7a6378a..0f2a51c 100644 --- a/juju/unit.py +++ b/juju/unit.py @@ -51,6 +51,13 @@ class Unit(model.ModelEntity): """ return self.safe_data['workload-status']['message'] + @property + def public_address(self): + """ Get the public address. + + """ + return self.safe_data['public-address'] or None + @property def tag(self): return 'unit-%s' % self.name.replace('/', '-') -- 2.25.1