~mthaddon/mojo/bundle-phase-1863764

« back to all changes in this revision

Viewing changes to mojo/phase.py

  • Committer: Tom Haddon
  • Date: 2020-02-18 14:37:30 UTC
  • Revision ID: tom.haddon@canonical.com-20200218143730-em5x2oy2hdrjb08f
Print name of phase being run rather than hard-coding phase name, as bundle phase inherits from deploy phase

Show diffs side-by-side

added added

removed removed

Lines of Context:
813
813
        self._check_juju_version()
814
814
        logging.debug("### Running phase {} with options {}"
815
815
                      "".format(self.name, self.options))
816
 
        logging.info("Running juju-deployer")
 
816
        logging.info("Running {} phase".format(self.name))
817
817
 
818
818
        configs = self._get_phase_configs(project, workspace, stage, auto_secrets=auto_secrets)
819
819
 
925
925
                        d, preview=False),
926
926
                    )
927
927
        completion_time = time.time() - start_time
928
 
        logging.info("Completed deploy phase in {} ({:.2f}s)"
929
 
                     .format(secs2human(completion_time), completion_time))
 
928
        logging.info("Completed {} phase in {} ({:.2f}s)"
 
929
                     .format(self.name, secs2human(completion_time), completion_time))
930
930
 
931
931
    def render_config(self, src, dest, tmpl_vars=None):
932
932
        if not tmpl_vars: