PR https://github.com/juju/juju/pull/11356 targets the develop branch and exposes the departing unit when invoking xyz-relation-departed hooks via a new envvar called JUJU_DEPARTING_UNIT. Charms can compare this value to JUJU_REMOTE_UNIT to see if they are the ones going away.
PR https:/ /github. com/juju/ juju/pull/ 11356 targets the develop branch and exposes the departing unit when invoking xyz-relation- departed hooks via a new envvar called JUJU_DEPARTING_ UNIT. Charms can compare this value to JUJU_REMOTE_UNIT to see if they are the ones going away.