Update requires

This commit is contained in:
Liam Young 2016-01-16 18:31:24 +00:00
parent c88b9a904c
commit 9c360b9df4
1 changed files with 3 additions and 2 deletions

View File

@ -21,7 +21,7 @@ class BindRNDCRequires(RelationBase):
# These remote data fields will be automatically mapped to accessors
# with a basic documentation string provided.
auto_accessors = ['algorithm', 'secret']
auto_accessors = ['algorithm', 'rndckey', 'private-address']
@hook('{requires:bind-rndc}-relation-joined')
def joined(self):
@ -45,7 +45,8 @@ class BindRNDCRequires(RelationBase):
"""
data = {
'algorithm': self.algorithm(),
'secret': self.secret(),
'secret': self.rndckey(),
'private_address': self.private_address(),
}
if all(data.values()):
return True