2013-06-19 20:51:56 |
James Page |
description |
Example config.yaml for a charm:
options:
database:
default: ""
type: string
description: empty string
test_two:
type: string
description: no default string
Retrieving these values without setting config:
config-get --format=json database
null
config-get --format=json test_two
null
This is a behavioral change from python juju where the following would happen:
config-get --format=json database
""
config-get --format=json test_two
null
I hit this while testing out some proposed changes to the postgresql charm on juju-core. |
Example config.yaml for a charm:
options:
database:
default: ""
type: string
description: empty string
test_two:
type: string
description: no default string
Retrieving these values without setting config:
config-get --format=json database
null
config-get --format=json test_two
null
This is a behavioral change from python juju where the following would happen:
config-get --format=json database
""
config-get --format=json test_two
null
I hit this while testing out some proposed changes to the postgresql charm on juju-core; parsing 'null' results in None in python - parsing "" results in an empty string = #BANG! |
|