Comment 26 for bug 2049785

Revision history for this message
Renan Rodrigo (renanrodrigo) wrote :

Hello everyone who worked on this bug
It seems problems with the old Json parsing still happens even in ubuntu-advantage-tools > 30.
See https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2058133.

I would again ask you to reconsider using the --format json, and moving to using the APIs (as it landed on Mantic + )

Using the supported and maintained APIs will indeed make update-manager more robust than relying on stdout output that ubuntu-advantage-tools does not maintain by default. We can, again, patch u-a-t for the new error we found, but using the APIs and dealing with exceptions would solve this particular problem IMHO.