Comment 4 for bug 1859211

Revision history for this message
Samuele Pedroni (pedronis) wrote :

We are removing the extra host line (it was convenient for bug reporting but given it created problems we will add the information somewhere dedicated), nevertheless we cannot promise from snapd that versions will not have spaces in them though ever. That parsing code still look likes is making too many assumptions, something like:

version_info = dict(line.split() for line in stdout.splitlines() if line.startswith('snapd '))

is probably safer.