~stub/mojo/entry-points

« back to all changes in this revision

Viewing changes to mojo/project.py

  • Committer: mergebot at canonical
  • Author(s): "Paul Collins"
  • Date: 2020-08-04 09:22:04 UTC
  • mfrom: (568.1.1 clarify-container-class-message)
  • Revision ID: mergebot@juju-139df4-prod-is-toolbox-0.canonical.com-20200804092204-5crrpilowmh511c9
reword logging to indicate the container already exists, not the class

Reviewed-on: https://code.launchpad.net/~pjdc/mojo/clarify-container-class-message/+merge/388638
Reviewed-by: Tom Haddon <tom.haddon@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
        self.project_series = os.path.join(self.root, self.series)
83
83
 
84
84
        if self.project_info.get("container_class"):
85
 
            logging.info("Using pre-existing container class {}".format(self.project_info.get("container_class")))
 
85
            logging.info(
 
86
                "Using pre-existing container (class={}, root={})".format(
 
87
                    self.project_info.get("container_class"), self.project_info.get("container_root")
 
88
                )
 
89
            )
86
90
            if self.project_info.get("container_class") == "lxc":
87
91
                container_class = LXCContainer
88
92
            elif self.project_info.get("container_class") == "lxd":