Ejemplo n.º 1
0
    def setUp(self):
        with NamedTemporaryFile(mode='w+', encoding='utf-8') as tempf:
            # Override config file to save to
            self.conf = Config({}, tempf.name)

        dc = MagicMock(name="display_controller")
        loop = MagicMock(name="loop")
        self.installer = MultiInstall(loop, dc, self.conf)
 def _do_install_existing_maas(self):
     """ Performs the landscape deployment with existing MAAS
     """
     if self.config.getopt('headless'):
         MultiInstall(self.loop, self.display_controller, self.config,
                      self.landscape_tasks).do_install()
     else:
         MultiInstallExistingMaas(self.loop,
                                  self.display_controller,
                                  self.config,
                                  post_tasks=self.landscape_tasks).run()