Skip to content

Commit

Permalink
fix centos yum makecache --assumeyes (#872)
Browse files Browse the repository at this point in the history
  • Loading branch information
shigechika authored and kotakanbe committed Jul 17, 2019
1 parent a977533 commit d770034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scan/redhatbase.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ func (o *redhatBase) parseInstalledPackagesLine(line string) (models.Package, er
}

func (o *redhatBase) yumMakeCache() error {
cmd := `yum makecache`
cmd := `yum makecache --assumeyes`
r := o.exec(util.PrependProxyEnv(cmd), o.sudo.yumMakeCache())
if !r.isSuccess() {
if !r.isSuccess(0, 1) {
return xerrors.Errorf("Failed to SSH: %s", r)
}
return nil
Expand Down

0 comments on commit d770034

Please sign in to comment.