Files
snapd/interfaces/utils
Pawel Stolowski 4121d58bbb interfaces: fix decoding of json numbers for static/dynamic attributes
* ifstate: fix decoding of json numbers

When we read the static slots/plugs from the state we decode them
as with the default json decoding. This leads to float64 instead
of the expected int. This PR fixes it and adds tests.

It also adds support in NormalizeInterfaceAttributes for json.Number.
2018-10-22 20:36:27 -06:00
..