'juju model-config foo' fails if a 'foo' directory exists
Bug #1946043 reported by
James Troup
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Jordan Barrett |
Bug Description
If a directory with the same name as a model-config key exists, 'juju
model-config KEY' fails, e.g.
```
$ juju model-config elmo=test
WARNING key "elmo" is not defined in the current model configuration: possible misspelling
$ juju model-config elmo
ERROR read /home/jujumanag
$ juju model-config --reset elmo
$
```
This affects default model configuration keys too, e.g. no-proxy.
'juju config KEY' doesn't have the same behaviour, e.g.
```
$ mkdir worker-multiplier
$ juju config aodh worker-multiplier
0.25
$
```
Changed in juju: | |
assignee: | nobody → Jordan Barrett (barrettj12) |
Changed in juju: | |
milestone: | 3.0.0 → 3.0-rc2 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Thank-you for the bug report. I think the best way to resolve this is to change `juju model-config` to require loading from a file to be explicit.
`juju model-config --file elmo.yaml`
This would bring it inline with `juju config`.
Change on juju 3.0 due to breaking model-config behavior.