projects
/
osm
/
N2VC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17b26ef
)
Add Unit.public_address property
author
Cynerva
<cynerva@gmail.com>
Wed, 28 Jun 2017 20:58:54 +0000
(15:58 -0500)
committer
Tim Van Steenburgh
<tvansteenburgh@gmail.com>
Wed, 28 Jun 2017 20:58:54 +0000
(16:58 -0400)
juju/unit.py
patch
|
blob
|
history
diff --git
a/juju/unit.py
b/juju/unit.py
index
7a6378a
..
0f2a51c
100644
(file)
--- 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('/', '-')