Comment 1 for bug 1640523

Revision history for this message
Barry Warsaw (barry) wrote : Re: usb vip and pid parsing fails

I'm looking at this again in more detail now and what I don't understand is why this is a bug on ubuntu-image given that u-i doesn't parse the snap.yaml, but instead only the gadget.yaml. And the gadget.yaml doesn't define `usb-vendor` or vip/pid.

However, we already have to special case a few instances where int-like values are parsed into actual integers, from which we have to convert back into strings. What I'd like to do is parse int-like things as strings and then turn the one or two cases back into ints in post-processing. The only values that might naturally be integers are the `size` and `offset` keys, but we already have to post-process them because their values can also have suffixes.