juju / charm-tools

Tools for charm authors and maintainers
Other
42 stars 64 forks source link

Fix TypeError from linter on X.Y min-juju-version #588

Closed johnsca closed 3 years ago

johnsca commented 3 years ago

Because YAML can end up treating a bare X.Y number as a float rather than a string, the linter was blowing up with an exception (TypeError: expected string or bytes-like object) instead of a useful error about the format of the min-juju-version field.

Drive-by: Update to match current regexp from upstream.