Juju Charms

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

Reported by Liam Young on 2011-10-19
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
postgresql (Juju Charms Collection)
Medium
Unassigned

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:

http://www.postgresql.org/docs/current/interactive/sql-syntax-lexical.html

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