db-admin-relation-joined crash with gojuju
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql (Juju Charms Collection) |
Fix Released
|
Undecided
|
Andreas Hasenack |
Bug Description
2013/05/10 23:13:11 INFO worker/uniter: HOOK Traceback (most recent call last):
2013/05/10 23:13:11 INFO worker/uniter: HOOK File "/var/lib/
2013/05/10 23:13:11 INFO worker/uniter: HOOK raise SystemExit(main())
2013/05/10 23:13:11 INFO worker/uniter: HOOK File "/var/lib/
2013/05/10 23:13:11 INFO worker/uniter: HOOK db_admin_
2013/05/10 23:13:11 INFO worker/uniter: HOOK File "/var/lib/
2013/05/10 23:13:11 INFO worker/uniter: HOOK generate_
2013/05/10 23:13:11 INFO worker/uniter: HOOK File "/var/lib/
2013/05/10 23:13:11 INFO worker/uniter: HOOK for unit in relation_
2013/05/10 23:13:11 INFO worker/uniter: HOOK TypeError: 'NoneType' object is not iterable
2013/05/10 23:13:11 ERROR worker/uniter: hook failed: exit status 1
I think pyjuju returned an empty string instead of the string "null". That breaks the relation_list() code so it doesn't return an empty list in that case, but the python value of None.
Branch attached, but only tested against gojuju.
Related branches
- Matthew Wedgwood (community): Approve
-
Diff: 12 lines (+3/-1)1 file modifiedhooks/hooks.py (+3/-1)
Changed in postgresql (Juju Charms Collection): | |
assignee: | nobody → Andreas Hasenack (ahasenack) |
status: | New → In Progress |
Changed in postgresql (Juju Charms Collection): | |
status: | In Progress → Fix Released |
tags: | added: landscape |