~barryprice/mojo/lp2024876

« back to all changes in this revision

Viewing changes to mojo/contain.py

  • Committer: mergebot at canonical
  • Author(s): "Thomas Cuthbert"
  • Date: 2023-05-16 06:46:25 UTC
  • mfrom: (599.1.1 mojo)
  • Revision ID: mergebot@juju-139df4-prod-is-toolbox-0.canonical.com-20230516064625-e2aprq09sjlccib6
fix: LXC platform dist discovery

Reviewed-on: https://code.launchpad.net/~tcuthbert/mojo/fix-lxc/+merge/442932
Reviewed-by: Tom Haddon <tom.haddon@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
470
470
        # consistent with what users expect, but we also make our own
471
471
        # adjustments to it as part of Project setup. It might be worth
472
472
        # building our own LXC template for Mojo at some point.
473
 
        dist = platform.dist()[0].lower()
 
473
        dist = platform_dist()[0].lower()
474
474
        arch = ARCHITECTURES.get(platform.architecture()[0])
475
475
        if UBUNTU_RELEASES.get(self.series) >= UBUNTU_RELEASES["vivid"]:
476
476
            template = "ubuntu-cloud"