canonical / maas-multipass

GNU Affero General Public License v3.0
12 stars 15 forks source link

Use json format instead of parsing ip route output #3

Closed valtzu closed 2 years ago

valtzu commented 2 years ago

Since jq is already installed and ip command supports json output with -j, it's probably better to use that instead of relying on text output format.


When following the tutorial, my 1st attempt failed at MaaS initialization (with a timeout), but after this change it succeeded. It could, and probably is unrelated though.

antongisli commented 2 years ago

Thanks for your contribution, I agree with you it's probably better to use JSON output. I will merge this, great that you made the effort!