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
def _exec_cmd_chroot(self, cmd): return utils.exec_ssh_cmd_chroot(self._ssh, self._os_root_dir, cmd)
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)
def _exec_cmd_chroot(self, cmd): return utils.exec_ssh_cmd_chroot(self._ssh, self._os_root_dir, cmd, self._environment)