canonical / jhack

Chock-full of Juju hackery.
Apache License 2.0
51 stars 24 forks source link

`show-relation` on peer relations with one unit doesn't work #58

Closed zmraul closed 1 year ago

zmraul commented 1 year ago

Steps to reproduce

Tested on the snap: 1) Deploy just one unit of a charm that creates a peer relation 2) jhack show-relation app:peers

KeyError: 'related-units'
PietroPasotti commented 1 year ago

aha, I think I know what that's about. The fact that juju commands can drop keys if the values are empty forces me to write really really defensive code. Uncool but undertandable. Will fix soon

PietroPasotti commented 1 year ago

should be fixed on edge as soon as the build completes. thanks for reporting!