config values of 0 are discarded

Bug #902219 reported by Nick Barcet
6
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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.