change ssh terminal width to fix rhel check-update format error and add *config.toml into .gitignore

This commit is contained in:
Sadayuki Matsuno
2016-06-05 13:40:16 +09:00
parent 8c4913d411
commit 2da01db438
3 changed files with 3 additions and 2 deletions

View File

@@ -648,7 +648,7 @@ python-libs.i686 2.6.6-64.el6 rhui-REGION-rhel-server-releases
func TestParseYumCheckUpdateLinesAmazon(t *testing.T) {
r := newRedhat(config.ServerInfo{})
r.Family = "amzon"
r.Family = "amazon"
stdout := `Loaded plugins: priorities, update-motd, upgrade-helper
34 package(s) needed for security, out of 71 available

View File

@@ -167,7 +167,7 @@ func sshExec(c conf.ServerInfo, cmd string, sudo bool, log ...*logrus.Entry) (re
ssh.TTY_OP_ISPEED: 14400, // input speed = 14.4kbaud
ssh.TTY_OP_OSPEED: 14400, // output speed = 14.4kbaud
}
if err = session.RequestPty("xterm", 400, 120, modes); err != nil {
if err = session.RequestPty("xterm", 400, 256, modes); err != nil {
logger.Errorf("Failed to request for pseudo terminal. err: %s, c: %s",
err,
pp.Sprintf("%v", c))