~ci-train-bot/libertine/libertine-ubuntu-zesty-2216

« back to all changes in this revision

Viewing changes to tools/libertine-container-manager

  • Committer: Larry Price
  • Date: 2016-11-09 14:27:30 UTC
  • mto: This revision was merged to the branch mainline in revision 329.
  • Revision ID: larry.price@canonical.com-20161109142730-1y4ypafo93hg2nsk
Use distro name as codename when codename not found

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
                sys.exit(1)
71
71
 
72
72
        if not args.name:
73
 
            args.name = "Ubuntu \'" + self.host_info.get_distro_codename(args.distro) + "\'"
 
73
            args.name = "Ubuntu \'" + (self.host_info.get_distro_codename(args.distro) or args.distro) + "\'"
74
74
 
75
75
        if container_type == "lxc":
76
76
            if args.password: