relation-get returns 0 unconditionally

Bug #1079917 reported by Matthew Wedgwood
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Triaged
Low
Unassigned

Bug Description

The relation-get command returns 0 unconditionally, even when the requested relation id or unit does not exist.

For example, in a debug-hooks session:
root@mew-lxc-db-0:/var/lib/juju/units/db-0/charm# relation-get - xxxxxxxx/1
Code<UNKNOWN>: Unknown Error
root@mew-lxc-db-0:/var/lib/juju/units/db-0/charm# echo $?
0

Haw Loeung (hloeung)
tags: added: canonical-webops-juju
Changed in juju:
status: New → Confirmed
milestone: none → 0.8
Curtis Hovey (sinzui)
Changed in juju:
importance: Undecided → Low
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.