Correct leader_set call

Fix the call to leader_set in create_initial_servers_and_domains
to pass a dict of data, rather than incorrectly just passing two
values.

Change-Id: Ic12808e1e7f76dfd013cd6ab51f5edccbb73f325
Closes-Bug: 1715567
This commit is contained in:
James Page 2017-09-07 08:20:19 +01:00
parent ad6b78bf1a
commit 8b852fc94a
1 changed files with 1 additions and 1 deletions

View File

@ -483,7 +483,7 @@ class DesignateCharm(openstack_charm.HAOpenStackCharm):
hookenv.config('neutron-domain-email'))
# if this fails, we weren't the leader any more; another unit may
# attempt to do this too.
hookenv.leader_set(KEY, 'done')
hookenv.leader_set({KEY: 'done'})
def update_pools(self):
# designate-manage communicates with designate via message bus so no