config values of 0 are discarded
Bug #902219 reported by
Nick Barcet
This bug report is a duplicate of:
Bug #900517: config-get on an int set to 0 does not return '0' but an empty string.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
New
|
Undecided
|
Unassigned |
Bug Description
Separately from bug #900560, when one sets a config value to zero, config-get returns and empty string.
Example:
with file service.yaml containing:
service:
do_https: 0
And config.yaml having:
option:
do_https:
type: int
default: 0
description: something
deploy the service using
>juju deploy --config service.yaml <service>
$(config-get do_https) will return an empty string instead of 0. Any other (positive) values I have tested work fine.
To post a comment you must log in.