config.yaml should have boolean types
Bug #885551 reported by
Marco Ceppi
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Wishlist
|
Kapil Thangavelu |
Bug Description
Currently only string is an acceptable type for data in the config.yaml file. Other types should be added, primarily: enum, integer, and boolean to help maintain some sanity in configuration options.
This bug covers boolean only. For enum, see bug #918386.
Related branches
lp:~hazmat/pyjuju/bool-and-validate-defaults
- Benjamin Saller (community): Approve
- Jim Baker (community): Approve
-
Diff: 141 lines (+68/-7)2 files modifiedjuju/charm/config.py (+16/-5)
juju/charm/tests/test_config.py (+52/-2)
Changed in juju: | |
assignee: | Kapil Thangavelu (hazmat) → William Reade (fwereade) |
status: | Triaged → In Progress |
Changed in juju: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Excerpts from Marco Ceppi's message of Thu Nov 03 03:54:24 UTC 2011:
> Public bug reported:
>
> Currently only string is an acceptable type for data in the config.yaml
> file. Other types should be added, primarily: enum, integer, and boolean
> to help maintain some sanity in configuration options.
>
> ** Affects: juju
> Importance: Undecided
> Status: New
>
There are some additional types available, although we should definitely add
some more. boolean and enum both sound good.
re existing types
integer -> 'int'
float -> 'float'