Add ``key`` property

This commit is contained in:
Frode Nordahl 2019-02-14 16:27:12 +01:00
parent 650a3947cd
commit b2ab9c6bcf
1 changed files with 4 additions and 0 deletions

View File

@ -65,3 +65,7 @@ class CephRBDMirrorRequires(Endpoint):
yield '[{}]:{}'.format(addr, port)
else:
yield '{}:{}'.format(addr, port)
@property
def key(self):
return self.all_units.received['key']