k8t icon indicating copy to clipboard operation
k8t copied to clipboard

Handle cli values that might be interpreted as scientific notation

Open dcernag opened this issue 5 years ago • 0 comments

k8t CLI accepts json to be sent via --values to accommodate nested values. json.loads in util.load_cli_values would parse strings matching scientific notation to float even if it is a string.

This was first found when a 77950e8 commit sha sent as a CLI value was parsed as 7795000000000.0

See default decoding in https://docs.python.org/3/library/json.html#json-to-py-table

Temporary emergency fix added in #95 , we need to find a better way to handle them.

dcernag avatar Jan 15 '21 13:01 dcernag