in relation-changed: 'NoneType' object has no attribute 'split'
Bug #1184687 reported by
Patrick Hetu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql (Juju Charms Collection) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In the relation-changed hook, if I don't set any roles, this line:
roles = filter(None, relation_
throw this error:
AttributeError: 'NoneType' object has no attribute 'split'
A strange thing is that I got the error only on the second relation that I created.
I've attached a patch of a possible solution.
Related branches
lp://staging/~stub/charms/precise/postgresql/bug-1084263-fix-broken-hooks
- charmers: Pending requested
-
Diff: 144 lines (+45/-18)1 file modifiedhooks/hooks.py (+45/-18)
Changed in postgresql (Juju Charms Collection): | |
status: | In Progress → Fix Released |
To post a comment you must log in.
I think I fixed this as part of https:/ /code.launchpad .net/~stub/ charms/ precise/ postgresql/ bug-1084263- fix-broken- hooks/+ merge/169486 before I realized this bug was here.