From 44453153a39a950112cc3c782dbd8dc6c66c7e2f Mon Sep 17 00:00:00 2001 From: James Page Date: Thu, 26 Jan 2017 15:59:27 +0000 Subject: [PATCH] Fix support for spaces in shared-db relation Newer versions of the mysql-shared interface automatically set the correct hostname based on the network space binding for the relation; stop providing this from the charm and just let the interface do its magic! Change-Id: I358bfe669fb50cbce0380460225866afede8bbf3 --- src/lib/charm/openstack/barbican.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/charm/openstack/barbican.py b/src/lib/charm/openstack/barbican.py index 5b10b9f..1887c9e 100644 --- a/src/lib/charm/openstack/barbican.py +++ b/src/lib/charm/openstack/barbican.py @@ -164,8 +164,7 @@ class BarbicanCharm(charms_openstack.charm.HAOpenStackCharm): return [ dict( database=self.config['database'], - username=self.config['database-user'], - hostname=hookenv.unit_private_ip(), ) + username=self.config['database-user'], ) ] def action_generate_mkek(self, hsm):