123
120
self.reconfigure_services()
126
130
hook_name = hookenv.hook_name()
127
131
for service in self.services.values():
128
132
for provider in service.get('provided_data', []):
129
133
if re.match(r'{}-relation-(joined|changed)'.format(provider.name), hook_name):
130
134
data = provider.provide_data()
132
137
hookenv.relation_set(None, data)
134
139
def reconfigure_services(self, *service_names):