Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lp1613839 - Add implicit int and uint to float64 conversion #17

Merged
merged 2 commits into from
Dec 10, 2018

Conversation

majduk
Copy link
Contributor

@majduk majduk commented Dec 6, 2018

This solves lp1613839.

The float checker only accepts float values, and, in contradiction to other checkers, does not do any simple conversions. This leads to a problem where any number specified without decimal part (eg 1) or with 0 decimal part (1.0) cannot be used in YAML files as it causes juju error.

This is a simple patch which allows int and uint conversions to float64 within float checker.

numeric.go Show resolved Hide resolved
Copy link
Member

@jameinel jameinel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jameinel jameinel merged commit 64a6158 into juju:master Dec 10, 2018
@jameinel
Copy link
Member

I landed this, You'll probably want to submit a follow up PR against juju/juju that updates the dependency to the new commit (64a6158)

jujubot added a commit to juju/juju that referenced this pull request Dec 13, 2018
#9567

## Description of change
Update juju/schema with fix for [#1613839](https://bugs.launchpad.net/juju/+bug/1613839) 

See: juju/schema#17

## QA steps

QA tests are embedded within juju/schema. 
I have also retested as described in [bug comment](https://bugs.launchpad.net/juju/+bug/1613839/comments/5)

## Bug reference

[lp1613839](https://bugs.launchpad.net/juju/+bug/1613839)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants