Example #1
0
 def _exec_cmd_chroot(self, cmd, timeout=None):
     if not timeout:
         timeout = self._osdetect_operation_timeout
     try:
         return utils.exec_ssh_cmd_chroot(self._conn,
                                          self._os_root_dir,
                                          cmd,
                                          environment=self._environment,
                                          get_pty=True,
                                          timeout=timeout)
     except exception.MinionMachineCommandTimeout as ex:
         raise exception.OSMorphingSSHOperationTimeout(
             cmd=cmd, timeout=timeout) from ex
Example #2
0
 def _exec_cmd_chroot(self, cmd):
     return utils.exec_ssh_cmd_chroot(self._ssh, self._os_root_dir, cmd)
Example #3
0
 def _exec_cmd_chroot(self, cmd):
     return utils.exec_ssh_cmd_chroot(self._ssh,
                                      self._os_root_dir,
                                      cmd,
                                      environment=self._environment,
                                      get_pty=True)
Example #4
0
 def _exec_cmd_chroot(self, cmd):
     return utils.exec_ssh_cmd_chroot(self._ssh, self._os_root_dir, cmd,
                                      self._environment)