Fails when attached to a charm with a hyphen in the name

Bug #878509 reported by Liam Young on 2011-10-19
This bug affects 2 people
Affects Status Importance Assigned to Milestone
postgresql (Juju Charms Collection)

Bug Description

I'm working on a charm which has a hyphen in the name. When I add the relationship to postgres the postgres hook fails because it tries to create a user and database both with hyphens in. I've removed then hyphen from my charm and the hook works

Related branches

Clint Byrum (clint-fewbar) wrote :

Hi Liam, thanks for taking the time to file this bug and help us make the juju charm collection better!

Indeed, the usernames and database names must conform to this documentation:

Section 4.1.1 defines the allowed chars, of which '-' is not one of them.

The fix is to change the -'s to _'s.

Changed in postgresql (juju Charms Collection):
status: New → Confirmed
importance: Undecided → Medium
tags: added: bitesize
Mark Mims (mark-mims) on 2011-12-12
Changed in postgresql (juju Charms Collection):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers