leader-set fails to clear value if the key has periods in it
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
High
|
Unassigned |
Bug Description
I ran into this issue during charm development where leader-set did not behave as expected. If I try to clear leadership data, and the key has periods in it, then leader-set silently fails to update the value:
$ juju run --unit easyrsa/0 -- leader-set my.test=value
$ juju run --unit easyrsa/0 -- leader-get my.test
value
$ juju run --unit easyrsa/0 -- leader-set my.test=
$ juju run --unit easyrsa/0 -- leader-get my.test
value
If I do the same thing using a key with dashes instead of periods, it works:
$ juju run --unit easyrsa/0 -- leader-set my-test=value
$ juju run --unit easyrsa/0 -- leader-get my-test
value
$ juju run --unit easyrsa/0 -- leader-set my-test=
$ juju run --unit easyrsa/0 -- leader-get my-test
juju version 2.5.4-xenial-amd64
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: leader-set |
Doesn't work on 2.8.10 either.