~lamont/maas/bug-1567176

« back to all changes in this revision

Viewing changes to src/provisioningserver/drivers/osystem/ubuntu.py

  • Committer: Lee Trager
  • Date: 2016-04-07 07:40:43 UTC
  • mto: This revision was merged to the branch mainline in revision 4887.
  • Revision ID: lee.trager@canonical.com-20160407074043-sa09eafdp18czqlt
Set Xenial as the default image and commissioing release. Set images.maas.io as the default simplestream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2014-2015 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2014-2016 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
"""Ubuntu Operating System."""
39
39
 
40
40
    def get_lts_release(self):
41
41
        """Return the latest Ubuntu LTS release."""
42
 
        return self.ubuntu_distro_info.lts()
 
42
        lts_release = self.ubuntu_distro_info.lts()
 
43
        # XXX ltrager 2016-04-06 - python3-distro-info won't set the latest lts
 
44
        # to Xenial until its been released. So we can start testing MAAS 2.0
 
45
        # with Xenial by default override it here. Once Xenial is released this
 
46
        # can be removed
 
47
        if lts_release == "trusty":
 
48
            return "xenial"
 
49
        else:
 
50
            return lts_release
43
51
 
44
52
    def get_default_release(self):
45
53
        """Gets the default release to use when a release is not