Merge pull request #93 from sadayuki-matsuno/redhat

fix rhel check-update format and add *config.toml into .gitignore
This commit is contained in:
Kota Kanbe
2016-06-13 14:03:56 +09:00
committed by GitHub
3 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@@ -9,3 +9,4 @@ issues/
vendor/
log/
results/
*config.toml

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))