config-get returns scientific notation for large ints
Bug #1302118 reported by
Matt Bruzek
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Wayne Witzel III | ||
1.25 |
Fix Released
|
High
|
Ian Booth |
Bug Description
I was writing a new charm and I found an interesting problem.
When I put a large int value in config.yaml (30000000) and read this value in config-changed with config-get it returned the scientific notation of that number 3e+07.
This result was unexpected and very hard to deal with the number in a bash script. I was trying to do some math with "bc" which does not recognize this format of scientific notation.
I have included a skeleton charm that shows this. Deploy the charm and watch the unit logs it will echo the value from the config-changed hook.
Please let me know if you need any more information.
Changed in juju-core: | |
importance: | High → Medium |
tags: | added: oil |
Changed in juju-core: | |
importance: | Medium → High |
Changed in juju-core: | |
milestone: | none → 1.26-alpha1 |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
no longer affects: | goyaml |
To post a comment you must log in.
This might be an issue with goyaml.