From 9c360b9df407d6da5c1d3a3789221d0019946248 Mon Sep 17 00:00:00 2001 From: Liam Young Date: Sat, 16 Jan 2016 18:31:24 +0000 Subject: [PATCH] Update requires --- requires.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/requires.py b/requires.py index 040347b..c01b05c 100644 --- a/requires.py +++ b/requires.py @@ -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