MAAS looks up what the latest LTS is using the DistroInfo library. This library contains a list of all released Ubuntu and Debian releases. For 2.0 we wanted to test Xenial as the default before it was released so I hard coded it in. This does not lock us to Xenial, it simply says if DistroInfo thinks the latest release is Trusty, use Xenial.
It looks like we're going to hardcode Xenial so even when 18.04 comes out Xenial will be used, I'm fine with that just two questions below.
MAAS looks up what the latest LTS is using the DistroInfo library. This library contains a list of all released Ubuntu and Debian releases. For 2.0 we wanted to test Xenial as the default before it was released so I hard coded it in. This does not lock us to Xenial, it simply says if DistroInfo thinks the latest release is Trusty, use Xenial.
It looks like we're going to hardcode Xenial so even when 18.04 comes out Xenial will be used, I'm fine with that just two questions below.